Deprecate aux heat from Honeywell (#114110)
* Remove aux heat * Add switch entity for emheat * Optimized async_setup_entry * Fix errors in comments * Fix new ruff failuer * Use constant for EM * Protect EM mode - must be in heat to turn on/off * Restore aux_heat * Add repair issue * Add missing place holder to issue * Better placeholder "option"
This commit is contained in:
parent
a5c82f3713
commit
7f8341e03a
7 changed files with 244 additions and 11 deletions
|
@ -30,7 +30,7 @@ async def test_setup_entry(hass: HomeAssistant, config_entry: MockConfigEntry) -
|
|||
await hass.async_block_till_done()
|
||||
assert config_entry.state is ConfigEntryState.LOADED
|
||||
assert (
|
||||
hass.states.async_entity_ids_count() == 3
|
||||
hass.states.async_entity_ids_count() == 4
|
||||
) # 1 climate entity; 2 sensor entities
|
||||
|
||||
|
||||
|
@ -63,8 +63,8 @@ async def test_setup_multiple_thermostats(
|
|||
await hass.async_block_till_done()
|
||||
assert config_entry.state is ConfigEntryState.LOADED
|
||||
assert (
|
||||
hass.states.async_entity_ids_count() == 6
|
||||
) # 2 climate entities; 4 sensor entities
|
||||
hass.states.async_entity_ids_count() == 8
|
||||
) # 2 climate entities; 4 sensor entities; 2 switch entities
|
||||
|
||||
|
||||
async def test_setup_multiple_thermostats_with_same_deviceid(
|
||||
|
@ -84,8 +84,8 @@ async def test_setup_multiple_thermostats_with_same_deviceid(
|
|||
await hass.async_block_till_done()
|
||||
assert config_entry.state is ConfigEntryState.LOADED
|
||||
assert (
|
||||
hass.states.async_entity_ids_count() == 3
|
||||
) # 1 climate entity; 2 sensor entities
|
||||
hass.states.async_entity_ids_count() == 4
|
||||
) # 1 climate entity; 2 sensor entities; 1 switch enitiy
|
||||
assert "Platform honeywell does not generate unique IDs" not in caplog.text
|
||||
|
||||
|
||||
|
@ -171,7 +171,7 @@ async def test_remove_stale_device(
|
|||
await hass.config_entries.async_setup(config_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
assert config_entry.state is ConfigEntryState.LOADED
|
||||
assert hass.states.async_entity_ids_count() == 6
|
||||
assert hass.states.async_entity_ids_count() == 8
|
||||
|
||||
device_entries = dr.async_entries_for_config_entry(
|
||||
device_registry, config_entry.entry_id
|
||||
|
@ -209,8 +209,8 @@ async def test_remove_stale_device(
|
|||
assert config_entry.state is ConfigEntryState.LOADED
|
||||
|
||||
assert (
|
||||
hass.states.async_entity_ids_count() == 3
|
||||
) # 1 climate entities; 2 sensor entities
|
||||
hass.states.async_entity_ids_count() == 4
|
||||
) # 1 climate entities; 2 sensor entities; 1 switch entity
|
||||
|
||||
device_entries = dr.async_entries_for_config_entry(
|
||||
device_registry, config_entry.entry_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue