deCONZ improve options updating entities (#42320)
This commit is contained in:
parent
ff4897a09e
commit
ac2c01d20c
12 changed files with 49 additions and 53 deletions
|
@ -76,7 +76,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
|||
battery_handler = DeconzBatteryHandler(gateway)
|
||||
|
||||
@callback
|
||||
def async_add_sensor(sensors):
|
||||
def async_add_sensor(sensors=gateway.api.sensors.values()):
|
||||
"""Add sensors from deCONZ.
|
||||
|
||||
Create DeconzBattery if sensor has a battery attribute.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue