Skip to content

Commit

Permalink
Change device is a group check #1347
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 17, 2024
1 parent 9c977c9 commit 1088197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/sonoff/core/ewelink/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ async def get_devices(self, homes: list = None) -> list[dict]:
devices += [
i["itemData"]
for i in resp["data"]["thingList"]
if i["itemType"] != 3 # skip groups
if "deviceid" in i["itemData"] # skip groups
]
return devices

Expand Down

0 comments on commit 1088197

Please sign in to comment.