Eliminate needless async_add_job invocation of async_add_devices (#6864)
This commit is contained in:
parent
f4d2ece2fe
commit
c27a526f5b
4 changed files with 4 additions and 4 deletions
|
@ -95,7 +95,7 @@ class LIFXManager(object):
|
|||
entity = LIFXLight(device)
|
||||
_LOGGER.debug("%s register READY", entity.ipaddr)
|
||||
self.entities[device.mac_addr] = entity
|
||||
self.hass.async_add_job(self.async_add_devices, [entity])
|
||||
self.async_add_devices([entity])
|
||||
|
||||
@callback
|
||||
def unregister(self, device):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue