From 7c99ffeaf75261faf40b35592a56340f2ae19512 Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Mon, 13 Mar 2023 23:07:36 +0100 Subject: [PATCH] Ignore virtual virtual wine cellar #3 --- pyhon/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyhon/api.py b/pyhon/api.py index e83c100..14f67ba 100644 --- a/pyhon/api.py +++ b/pyhon/api.py @@ -55,11 +55,13 @@ class HonConnection: 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