Skip to content

Commit ff388b1

Browse files
committed
Extra debug
1 parent d26cc87 commit ff388b1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

plugwise/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ async def async_update(self) -> PlugwiseData:
310310
except (DataMissingError, KeyError) as err:
311311
raise PlugwiseError("No Plugwise data received") from err
312312

313+
LOGGER.debug("HOI end gateway_id: %s", self.gateway_id)
314+
LOGGER.debug("HOI end last-active: %s", self._last_active)
313315
return data
314316

315317
########################################################################################################

plugwise/smile.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,6 +1361,7 @@ def get_all_gateway_entities(self) -> None:
13611361
self.gw_entities.update(group_data)
13621362

13631363
self._all_entity_data()
1364+
LOGGER.debug("HOI 1 gateway_id: %s", self.gateway_id)
13641365

13651366
async def async_update(self) -> PlugwiseData:
13661367
"""Perform an full update: re-collect all gateway entities and their data and states.
@@ -1370,9 +1371,12 @@ async def async_update(self) -> PlugwiseData:
13701371
self.gw_data: GatewayData = {}
13711372
self.gw_entities: dict[str, GwEntityData] = {}
13721373
self._zones: dict[str, GwEntityData] = {}
1374+
LOGGER.debug("HOI 2 gateway_id: %s", self.gateway_id)
13731375
try:
13741376
await self.full_xml_update()
1377+
LOGGER.debug("HOI 2a gateway_id: %s", self.gateway_id)
13751378
self.get_all_gateway_entities()
1379+
LOGGER.debug("HOI 2b gateway_id: %s", self.gateway_id)
13761380
# Set self._cooling_enabled - required for set_temperature(),
13771381
# also, check for a failed data-retrieval
13781382
if "heater_id" in self.gw_data:
@@ -1389,6 +1393,7 @@ async def async_update(self) -> PlugwiseData:
13891393
except KeyError as err:
13901394
raise DataMissingError("No Plugwise actual data received") from err
13911395

1396+
LOGGER.debug("HOI 2c gateway_id: %s", self.gateway_id)
13921397
return PlugwiseData(
13931398
devices=self.gw_entities,
13941399
gateway=self.gw_data,

0 commit comments

Comments
 (0)