Use list literals (#33659)

This commit is contained in:
springstan authored and GitHub committed 2020-04-04 23:14:47 +02:00
1 parent dde93304d3
commit db72039b8f
14 files changed
+18 -18

No files matched your search

+1 -1
View File
@@ -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))