1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Blebox add thermoBox to climate (#81090)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Michał Huryn
2022-12-06 14:43:35 +01:00
committed by GitHub
parent 9f36412076
commit 923fa473e1
9 changed files with 223 additions and 125 deletions

View File

@@ -39,12 +39,12 @@ def tv_lift_box_fixture(caplog):
return (feature, "button.tvliftbox_open_or_stop")
async def test_tvliftbox_init(tvliftbox, hass, config, caplog):
async def test_tvliftbox_init(tvliftbox, hass, caplog):
"""Test tvLiftBox initialisation."""
caplog.set_level(logging.ERROR)
_, entity_id = tvliftbox
entry = await async_setup_entity(hass, config, entity_id)
entry = await async_setup_entity(hass, entity_id)
state = hass.states.get(entity_id)
assert entry.unique_id == "BleBox-tvLiftBox-4a3fdaad90aa-open_or_stop"
@@ -53,13 +53,13 @@ async def test_tvliftbox_init(tvliftbox, hass, config, caplog):
@pytest.mark.parametrize("input", query_icon_matching)
async def test_get_icon(input, tvliftbox, hass, config, caplog):
async def test_get_icon(input, tvliftbox, hass, caplog):
"""Test if proper icon is returned."""
caplog.set_level(logging.ERROR)
feature_mock, entity_id = tvliftbox
feature_mock.query_string = input[0]
_ = await async_setup_entity(hass, config, entity_id)
_ = await async_setup_entity(hass, entity_id)
state = hass.states.get(entity_id)
assert state.attributes[ATTR_ICON] == input[1]