Skip to content

Commit

Permalink
Ignore virtual virtual wine cellar #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre0512 committed Mar 13, 2023
1 parent 2941b57 commit 7c99ffe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyhon/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ async def setup(self):
appliances = (await resp.json())["payload"]["appliances"]
for appliance in appliances:
device = HonDevice(self, appliance)
if device.mac_address is None:
continue
await asyncio.gather(*[
device.load_attributes(),
device.load_commands(),
device.load_statistics()])
self._devices.append(device)
self._devices.append(device)
except json.JSONDecodeError:
_LOGGER.error("No JSON Data after GET: %s", await resp.text())
return False
Expand Down

0 comments on commit 7c99ffe

Please sign in to comment.