Skip to content

Commit 7fd7481

Browse files
committed
Clean-up unused self's
1 parent f489121 commit 7fd7481

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

plugwise/helper.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,6 @@ class SmileHelper(SmileCommon):
195195

196196
def __init__(self) -> None:
197197
"""Set the constructor for this class."""
198-
self._cooling_activation_outdoor_temp: float
199-
self._cooling_deactivation_threshold: float
200198
self._cooling_present: bool
201199
self._count: int
202200
self._dhw_allowed_modes: list[str] = []
@@ -212,7 +210,6 @@ def __init__(self) -> None:
212210
self._notifications: dict[str, dict[str, str]] = {}
213211
self._on_off_device: bool
214212
self._opentherm_device: bool
215-
self._outdoor_temp: float
216213
self._reg_allowed_modes: list[str] = []
217214
self._schedule_old_states: dict[str, dict[str, str]]
218215
self._status: etree
@@ -598,20 +595,6 @@ def _appliance_measurements(
598595
appl_p_loc.text, getattr(attrs, ATTR_UNIT_OF_MEASUREMENT)
599596
)
600597
data["sensors"][s_key] = s_value
601-
# Anna: save cooling-related measurements for later use
602-
# Use the local outdoor temperature as reference for turning cooling on/off
603-
if measurement == "cooling_activation_outdoor_temperature":
604-
self._cooling_activation_outdoor_temp = data["sensors"][
605-
"cooling_activation_outdoor_temperature"
606-
]
607-
if measurement == "cooling_deactivation_threshold":
608-
self._cooling_deactivation_threshold = data["sensors"][
609-
"cooling_deactivation_threshold"
610-
]
611-
if measurement == "outdoor_air_temperature":
612-
self._outdoor_temp = data["sensors"][
613-
"outdoor_air_temperature"
614-
]
615598
case _ as measurement if measurement in SWITCHES:
616599
sw_key = cast(SwitchType, measurement)
617600
sw_value = appl_p_loc.text in ["on", "true"]

0 commit comments

Comments
 (0)