Fix Testus

This commit is contained in:
Jean-Marc Collin
2024-11-17 10:51:02 +00:00
parent ce73f1275b
commit c935ee3af5
2 changed files with 3 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ class UnderlyingEntity:
self._thermostat = thermostat
self._type = entity_type
self._entity_id = entity_id
self._hvac_mode = None
def __str__(self):
return str(self._thermostat) + "-" + self._entity_id

View File

@@ -517,6 +517,7 @@ async def test_user_config_flow_over_climate(
CONF_USE_ADVANCED_CENTRAL_CONFIG: False,
CONF_USED_BY_CENTRAL_BOILER: False,
CONF_USE_CENTRAL_MODE: False,
CONF_SONOFF_TRZB_MODE: False,
}
assert result["result"]
assert result["result"].domain == DOMAIN
@@ -1126,6 +1127,7 @@ async def test_user_config_flow_over_climate_auto_start_stop(
CONF_USED_BY_CENTRAL_BOILER: False,
CONF_USE_AUTO_START_STOP_FEATURE: True,
CONF_AUTO_START_STOP_LEVEL: AUTO_START_STOP_LEVEL_MEDIUM,
CONF_SONOFF_TRZB_MODE: False,
}
assert result["result"]
assert result["result"].domain == DOMAIN