Remove unneeded guards from (async_)add_entities call (#80471)
This commit is contained in:
parent
ebf73f41ba
commit
a8f1cc0d33
66 changed files with 74 additions and 148 deletions
|
@ -47,8 +47,7 @@ def add_entities(account, async_add_entities, tracked):
|
|||
new_tracked.append(IcloudDeviceBatterySensor(account, device))
|
||||
tracked.add(dev_id)
|
||||
|
||||
if new_tracked:
|
||||
async_add_entities(new_tracked, True)
|
||||
async_add_entities(new_tracked, True)
|
||||
|
||||
|
||||
class IcloudDeviceBatterySensor(SensorEntity):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue