Remove update on add signalling in Axis integration (#41956)
Minor clean up of the integration
This commit is contained in:
1 parent
cb60905415
commit
028689d6bd
5 files changed
+12
-4
No files matched your search
@@ -20,7 +20,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
event = device.api.event[event_id]
|
||||
|
||||
if event.CLASS == CLASS_OUTPUT:
|
||||
async_add_entities([AxisSwitch(event, device)], True)
|
||||
async_add_entities([AxisSwitch(event, device)])
|
||||
|
||||
device.listeners.append(
|
||||
async_dispatcher_connect(hass, device.signal_new_event, async_add_switch)
|
||||
|
||||
Reference in new issue
Block a user