Use list literals (#33659)
This commit is contained in:
1 parent
dde93304d3
commit
db72039b8f
14 files changed
+18
-18
No files matched your search
@@ -195,7 +195,7 @@ def devices_with_push(hass):
|
||||
|
||||
def enabled_push_ids(hass):
|
||||
"""Return a list of push enabled target push IDs."""
|
||||
push_ids = list()
|
||||
push_ids = []
|
||||
for device in hass.data[DOMAIN][ATTR_DEVICES].values():
|
||||
if device.get(ATTR_PUSH_ID) is not None:
|
||||
push_ids.append(device.get(ATTR_PUSH_ID))
|
||||
|
||||
Reference in new issue
Block a user