deCONZ improve options updating entities (#42320)

This commit is contained in:
Robert Svensson 2020-12-02 16:21:27 +01:00 committed by GitHub
parent ff4897a09e
commit ac2c01d20c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 49 additions and 53 deletions

View file

@ -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.