Compare commits
1 Commits
main
...
jmcollin78
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d4a719a660 |
@@ -130,9 +130,9 @@ class FeatureWindowManager(BaseFeatureManager):
|
|||||||
async def start_listening(self):
|
async def start_listening(self):
|
||||||
"""Start listening the underlying entity"""
|
"""Start listening the underlying entity"""
|
||||||
|
|
||||||
#Try to get last window bypass state
|
# Try to get last window bypass state
|
||||||
old_state = await self._vtherm.async_get_last_state()
|
old_state = await self._vtherm.async_get_last_state()
|
||||||
self._is_window_bypass = True if old_state and old_state.attributes and old_state.attributes.get("is_window_bypass") == True else False
|
self._is_window_bypass = True if old_state and old_state.attributes and old_state.attributes.get("is_window_bypass") is True else False
|
||||||
|
|
||||||
if self._is_configured:
|
if self._is_configured:
|
||||||
self.stop_listening()
|
self.stop_listening()
|
||||||
|
|||||||
@@ -625,6 +625,10 @@ class ThermostatOverClimate(BaseThermostat[UnderlyingClimate]):
|
|||||||
changes = False
|
changes = False
|
||||||
new_hvac_mode = new_state.state
|
new_hvac_mode = new_state.state
|
||||||
|
|
||||||
|
# Issue #903 - patch AUTO mode
|
||||||
|
if new_hvac_mode == HVACMode.AUTO:
|
||||||
|
new_hvac_mode = HVACMode.HEAT if not self.ac_mode else HVACMode.COOL
|
||||||
|
|
||||||
old_state = event.data.get("old_state")
|
old_state = event.data.get("old_state")
|
||||||
|
|
||||||
# Issue #829 - refresh underlying command if it comes back to life
|
# Issue #829 - refresh underlying command if it comes back to life
|
||||||
|
|||||||
Reference in New Issue
Block a user