Skip to content

Commit db85304

Browse files
authored
Merge pull request #318 from claudegel/Code-clean
AutoBypass fix
2 parents 3436c0a + 0e91127 commit db85304

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

custom_components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"neviweb130": {
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"local_location": "/custom_components/neviweb130/__init__.py",
55
"remote_location": "https://github.com/claudegel/sinope-130/tree/master/custom_components/__init__.py",
66
"visit_repo": "https://github.com/claudegel/sinope-130",

custom_components/neviweb130/climate.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,7 @@ def extra_state_attributes(self):
17351735
@property
17361736
def pi_heating_demand(self) -> int:
17371737
"""Heating demand."""
1738-
return self.heat_level
1738+
return self._heat_level
17391739

17401740
@property
17411741
def supported_features(self):
@@ -1905,7 +1905,10 @@ def hvac_action(self):
19051905
elif self._operation_mode == HVACMode.DRY:
19061906
return HVACAction.DRYING
19071907
elif not HOMEKIT_MODE and self._operation_mode == MODE_AUTO_BYPASS:
1908-
return HVACAction.HEATING
1908+
if self._heat_level == 0:
1909+
return HVACAction.IDLE + "(" + MODE_AUTO_BYPASS + ")"
1910+
else:
1911+
return HVACAction.HEATING + "(" + MODE_AUTO_BYPASS + ")"
19091912
elif self._heat_level == 0:
19101913
return HVACAction.IDLE
19111914
else:
@@ -2178,6 +2181,7 @@ def set_hvac_mode(self, hvac_mode):
21782181
else:
21792182
_LOGGER.error("Unable to set hvac mode: %s.", hvac_mode)
21802183
self._operation_mode = hvac_mode
2184+
self.update()
21812185

21822186
def set_preset_mode(self, preset_mode):
21832187
"""Activate a preset."""

custom_components/neviweb130/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"dependencies": [],
88
"requirements": [],
99
"iot_class": "cloud_polling",
10-
"version": "3.0.1",
11-
"homeassistant": "2024.12.1"
10+
"version": "3.0.2",
11+
"homeassistant": "2025.1.1"
1212
}

custom_components/neviweb130/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
"""Default parameters values."""
3939

40-
VERSION = "3.0.1"
40+
VERSION = "3.0.2"
4141
SCAN_INTERVAL = timedelta(seconds=540)
4242
HOMEKIT_MODE = False
4343
STAT_INTERVAL = 1800

0 commit comments

Comments
 (0)