Skip to content

Commit 181e615

Browse files
committed
Fix as suggested
1 parent 46bd479 commit 181e615

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def _add_or_update_notifications(
112112
return # pragma: no cover
113113

114114
if self._is_thermostat or self.smile.type == "power":
115-
if "plugwise_notification" not in entity:
115+
if "plugwise_notification" not in entity["binary_sensors"]:
116116
entity["binary_sensors"].update(
117117
{"plugwise_notification": bool(self._notifications)}
118118
)

0 commit comments

Comments
 (0)