We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29fe41c commit f0b0cf3Copy full SHA for f0b0cf3
plugwise/smile.py
@@ -132,13 +132,8 @@ async def async_update(self) -> PlugwiseData:
132
try:
133
await self.full_xml_update()
134
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"]
+ # Check for a failed data-retrieval
+ _ = self.gw_entities[self.gw_data["gateway_id"]]
142
except KeyError as err:
143
raise DataMissingError("No Plugwise data received") from err
144
0 commit comments