Skip to content

Commit dc7c7ea

Browse files
committed
Add state to debug message
1 parent cb91019 commit dc7c7ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pymyq/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,9 @@ async def update_device_info(self) -> None:
546546
if myqdevice.device_json["state"].get("last_update") is not None and \
547547
myqdevice.device_json["state"].get("last_update") != last_update:
548548
# MyQ has updated device state, reset ours ensuring we have the one from MyQ.
549-
_LOGGER.debug(f"State for device {myqdevice.name} was updated")
550549
myqdevice.state = None
550+
_LOGGER.debug(f"State for device {myqdevice.name} was updated to {myqdevice.state}")
551+
551552

552553
myqdevice.state_update = state_update_timestmp
553554
else:

0 commit comments

Comments
 (0)