FIX some testus. Some others are still KO

This commit is contained in:
Jean-Marc Collin
2024-03-03 20:35:38 +00:00
parent 156d19666c
commit 15c02e9722
6 changed files with 124 additions and 109 deletions

View File

@@ -80,13 +80,16 @@ async def test_add_a_central_config(hass: HomeAssistant, skip_hass_states_is_sta
},
)
central_config_entry.add_to_hass(hass)
await hass.config_entries.async_setup(central_config_entry.entry_id)
assert central_config_entry.state is ConfigEntryState.LOADED
entity: ThermostatOverClimate = search_entity(
hass, "climate.thecentralconfigmockname", "climate"
entity = await create_thermostat(
hass, central_config_entry, "climate.thecentralconfigmockname"
)
# central_config_entry.add_to_hass(hass)
# await hass.config_entries.async_setup(central_config_entry.entry_id)
# assert central_config_entry.state is ConfigEntryState.LOADED
#
# entity: ThermostatOverClimate = search_entity(
# hass, "climate.thecentralconfigmockname", "climate"
# )
assert entity is None