Add entity translations to Switcher kis (#99223)
* Add entity translations to switcher_kis * Add entity translations * Fix tests
This commit is contained in:
parent
fc6f48e076
commit
821d74e904
8 changed files with 59 additions and 31 deletions
|
@ -77,7 +77,7 @@ async def test_update_fail(
|
|||
state = hass.states.get(entity_id)
|
||||
assert state.state == STATE_UNAVAILABLE
|
||||
|
||||
entity_id = f"sensor.{slugify(device.name)}_power_consumption"
|
||||
entity_id = f"sensor.{slugify(device.name)}_power"
|
||||
state = hass.states.get(entity_id)
|
||||
assert state.state == STATE_UNAVAILABLE
|
||||
|
||||
|
@ -92,7 +92,7 @@ async def test_update_fail(
|
|||
state = hass.states.get(entity_id)
|
||||
assert state.state != STATE_UNAVAILABLE
|
||||
|
||||
entity_id = f"sensor.{slugify(device.name)}_power_consumption"
|
||||
entity_id = f"sensor.{slugify(device.name)}_power"
|
||||
state = hass.states.get(entity_id)
|
||||
assert state.state != STATE_UNAVAILABLE
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue