Skip to content

Commit 98815bc

Browse files
committed
And implement via cast()
1 parent c53bfe1 commit 98815bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugwise/helper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
TOGGLES,
5454
UOM,
5555
ActuatorData,
56+
ActuatorDataType,
5657
ActuatorType,
5758
ApplianceData,
5859
ApplianceType,
@@ -970,7 +971,8 @@ def _get_actuator_functionalities(self, xml: etree, data: DeviceData) -> None:
970971
# Rename offset to setpoint
971972
key = "setpoint"
972973

973-
temp_dict[key] = format_measure(function.text, TEMP_CELSIUS)
974+
act_key = cast(ActuatorDataType, key)
975+
temp_dict[act_key] = format_measure(function.text, TEMP_CELSIUS)
974976

975977
if temp_dict:
976978
# If domestic_hot_water_setpoint is present as actuator,

0 commit comments

Comments
 (0)