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:
Alexei Chetroi authored and Martin Hjelmare committed 2018-12-23 20:47:06 +01:00
1 parent 0b84eefa2e
commit 4a1da0b041
6 files changed
+19 -40

No files matched your search

-2
View File
@@ -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