deCONZ improve options updating entities (#42320)
This commit is contained in:
parent
ff4897a09e
commit
ac2c01d20c
12 changed files with 49 additions and 53 deletions
|
@ -16,7 +16,7 @@ async def async_setup_events(gateway) -> None:
|
|||
"""Set up the deCONZ events."""
|
||||
|
||||
@callback
|
||||
def async_add_sensor(sensors):
|
||||
def async_add_sensor(sensors=gateway.api.sensors.values()):
|
||||
"""Create DeconzEvent."""
|
||||
for sensor in sensors:
|
||||
|
||||
|
@ -38,9 +38,7 @@ async def async_setup_events(gateway) -> None:
|
|||
)
|
||||
)
|
||||
|
||||
async_add_sensor(
|
||||
[gateway.api.sensors[key] for key in sorted(gateway.api.sensors, key=int)]
|
||||
)
|
||||
async_add_sensor()
|
||||
|
||||
|
||||
@callback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue