Remove unneeded guards from (async_)add_entities call (#80471)

This commit is contained in:
Franck Nijhof 2022-10-17 21:11:58 +02:00 committed by GitHub
parent ebf73f41ba
commit a8f1cc0d33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
66 changed files with 74 additions and 148 deletions

View file

@ -62,8 +62,7 @@ def async_update_friends(
]
new_entities = new_entities + current[xuid]
if new_entities:
async_add_entities(new_entities)
async_add_entities(new_entities)
# Process deleted favorites, remove them from Home Assistant
for xuid in current_ids - new_ids: