Configure ZHA entity on new ZHA device join (#19470)
* Address PR#19177 comments. * Make 'new_join' part of ZhaEntity. Call async_configure() automatically when new device ZHA device joins.
This commit is contained in:
1 parent
0b84eefa2e
commit
4a1da0b041
6 files changed
+19
-40
No files matched your search
@@ -84,8 +84,6 @@ async def make_sensor(discovery_info):
|
||||
else:
|
||||
sensor = Sensor(**discovery_info)
|
||||
|
||||
if discovery_info['new_join']:
|
||||
await sensor.async_configure()
|
||||
return sensor
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user