Skip to content

Commit 669371c

Browse files
committed
fixed central heating unit status, bump OWNd
1 parent f231a77 commit 669371c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

custom_components/myhome/climate.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ def __init__(self, hass, zone: str, name: str, heating: bool, cooling: bool, fan
150150
self._cooling = cooling
151151
if heating or cooling:
152152
self._supported_features |= SUPPORT_TARGET_TEMPERATURE
153-
self._hvac_modes.append(HVAC_MODE_AUTO)
153+
if self._zone != "#0":
154+
self._hvac_modes.append(HVAC_MODE_AUTO)
154155
if heating:
155156
self._hvac_modes.append(HVAC_MODE_HEAT)
156157
if cooling:
@@ -253,7 +254,10 @@ def current_temperature(self) -> float:
253254

254255
@property
255256
def target_temperature(self) -> float:
256-
return self._local_target_temperature
257+
if self._local_target_temperature is not None:
258+
return self._local_target_temperature
259+
else:
260+
return self._target_temperature
257261

258262
@property
259263
def hvac_mode(self) -> str:

custom_components/myhome/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "MyHOME",
44
"config_flow": true,
55
"documentation": "",
6-
"requirements": ["OWNd==0.7.13"],
6+
"requirements": ["OWNd==0.7.14"],
77
"ssdp": [
88
{
99
"manufacturer": "BTicino S.p.A.",

0 commit comments

Comments
 (0)