Skip to content

Commit f3000c2

Browse files
committed
More sensor-name changes
1 parent 12787fb commit f3000c2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

plugwise/smile.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -732,25 +732,25 @@ def get_device_data(self, dev_id):
732732

733733
device_data = self.get_appliance_data(dev_id)
734734

735-
# Legacy_anna: create intended_central_heating_state and leave out domestic_hot_water_state
735+
# Legacy_anna: create heating_state and leave out domestic_hot_water_state
736736
if "boiler_state" in device_data:
737-
device_data["intended_central_heating_state"] = device_data[
737+
device_data["heating_state"] = device_data[
738738
"intended_boiler_state"
739739
]
740740
device_data.pop("boiler_state", None)
741741
device_data.pop("intended_boiler_state", None)
742742

743-
# Fix for Adam + Anna: intended_central_heating_state also present under Anna, remove
743+
# Fix for Adam + Anna: heating_state also present under Anna, remove
744744
if "thermostat" in device_data:
745-
device_data.pop("intended_central_heating_state", None)
745+
device_data.pop("heating_state", None)
746746

747-
# Adam: indicate intended_central_heating_state based on valves being open in case of city-provided heating
747+
# Adam: indicate heating_state based on valves being open in case of city-provided heating
748748
if self.smile_name == "Adam":
749749
if details["class"] == "heater_central":
750750
if not self.active_device_present:
751-
device_data["intended_central_heating_state"] = True
751+
device_data["heating_state"] = True
752752
if self.get_open_valves() == 0:
753-
device_data["intended_central_heating_state"] = False
753+
device_data["heating_state"] = False
754754

755755
# Anna, Lisa, Tom/Floor
756756
if details["class"] in thermostat_classes:

0 commit comments

Comments
 (0)