Skip to content

Commit f0b0cf3

Browse files
committed
Clean up unused code, clarify function via comment
1 parent 29fe41c commit f0b0cf3

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

plugwise/smile.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,8 @@ async def async_update(self) -> PlugwiseData:
132132
try:
133133
await self.full_xml_update()
134134
self.get_all_gateway_entities()
135-
if "heater_id" in self.gw_data:
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"]
135+
# Check for a failed data-retrieval
136+
_ = self.gw_entities[self.gw_data["gateway_id"]]
142137
except KeyError as err:
143138
raise DataMissingError("No Plugwise data received") from err
144139

0 commit comments

Comments
 (0)