@@ -57,7 +57,7 @@ def notification(self):
5757 return self ._notification
5858
5959 @staticmethod
60- def icon_selector (arg , state ):
60+ def _icon_selector (arg , state ):
6161 selector = {
6262 "dhw_state" : FLOW_ON_ICON if state else FLOW_OFF_ICON ,
6363 "flame_state" : FLAME_ICON if state else IDLE_ICON ,
@@ -81,12 +81,12 @@ def update_data(self):
8181 continue
8282
8383 self ._is_on = item [ATTR_STATE ]
84- self ._icon = self .icon_selector (self ._binary_sensor , self ._is_on )
84+ self ._icon = self ._icon_selector (self ._binary_sensor , self ._is_on )
8585
8686 if self ._binary_sensor != "plugwise_notification" :
8787 continue
8888
89- notify = self ._api .notifications
89+ notify = self ._api ._notifications
9090 self ._notification = {}
9191 for severity in SEVERITIES :
9292 self ._attributes [f"{ severity .upper ()} _msg" ] = []
@@ -125,8 +125,8 @@ def __init__(self, api, dev_id):
125125 self ._smile_class = None
126126 self ._temperature = None
127127
128- self ._active_device = self ._api .active_device_present
129- self ._heater_id = self ._api .heater_id
128+ self ._active_device = self ._api ._active_device_present
129+ self ._heater_id = self ._api ._heater_id
130130 self ._sm_thermostat = self ._api .single_master_thermostat ()
131131
132132 @property
0 commit comments