Add entity translations to Switcher kis (#99223)

* Add entity translations to switcher_kis

* Add entity translations

* Fix tests
This commit is contained in:
Joost Lekkerkerker 2023-08-28 19:53:42 +02:00 committed by GitHub
parent fc6f48e076
commit 821d74e904
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 59 additions and 31 deletions

View file

@ -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