Skip to content

Commit 45adc06

Browse files
committed
Disable setting self._cooling_enabled in smile.py
1 parent 16356c9 commit 45adc06

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

plugwise/smile.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ async def async_update(self) -> PlugwiseData:
133133
await self.full_xml_update()
134134
self.get_all_gateway_entities()
135135
if "heater_id" in self.gw_data:
136-
heat_cooler = self.gw_entities[self.gw_data["heater_id"]]
137-
if (
138-
"binary_sensors" in heat_cooler
139-
and "cooling_enabled" in heat_cooler["binary_sensors"]
140-
):
141-
self._cooling_enabled = heat_cooler["binary_sensors"]["cooling_enabled"]
136+
_ = self.gw_entities[self.gw_data["heater_id"]]
137+
# if (
138+
# "binary_sensors" in heat_cooler
139+
# and "cooling_enabled" in heat_cooler["binary_sensors"]
140+
# ):
141+
# self._cooling_enabled = heat_cooler["binary_sensors"]["cooling_enabled"]
142142
except KeyError as err:
143143
raise DataMissingError("No Plugwise data received") from err
144144

0 commit comments

Comments
 (0)