Skip to content

Commit d871840

Browse files
committed
Fixes
1 parent 810c333 commit d871840

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugwise/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,6 @@ class SmileProps(TypedDict, total=False):
400400
gateway_id: str
401401
heater_id: str
402402
item_count: int
403-
notifications: dict[str, dict[str, str]]
404403
reboot: bool
405404
smile_name: str
406405

@@ -551,6 +550,7 @@ class GwEntityData(TypedDict, total=False):
551550

552551
# Gateway
553552
gateway_modes: list[str]
553+
notifications: dict[str, dict[str, str]]
554554
regulation_modes: list[str]
555555
select_gateway_mode: str
556556
select_regulation_mode: str

plugwise/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ def _get_plugwise_notifications(self) -> None:
446446
msg_id = notification.attrib["id"]
447447
msg_type = notification.find("type").text
448448
msg = notification.find("message").text
449-
self._notifications.update({msg_id: {msg_type: msg}})
449+
self._notifications[msg_id] = {msg_type: msg}
450450
LOGGER.debug("Plugwise notifications: %s", self._notifications)
451451
except AttributeError: # pragma: no cover
452452
LOGGER.debug(

0 commit comments

Comments
 (0)