mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Address invalid keys in translation for whirlpool (#85849)
This commit is contained in:
parent
104f74054b
commit
1a0bce715a
@ -28,9 +28,9 @@ from .const import DOMAIN
|
|||||||
TANK_FILL = {
|
TANK_FILL = {
|
||||||
"0": "unknown",
|
"0": "unknown",
|
||||||
"1": "empty",
|
"1": "empty",
|
||||||
"2": "25%",
|
"2": "25",
|
||||||
"3": "50%",
|
"3": "50",
|
||||||
"4": "100%",
|
"4": "100",
|
||||||
"5": "active",
|
"5": "active",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,9 +51,9 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"unknown": "Unknown",
|
"unknown": "Unknown",
|
||||||
"empty": "Empty",
|
"empty": "Empty",
|
||||||
"25%": "25%",
|
"25": "25%",
|
||||||
"50%": "50%",
|
"50": "50%",
|
||||||
"100%": "100%",
|
"100": "100%",
|
||||||
"active": "[%key:common::state::active%]"
|
"active": "[%key:common::state::active%]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -149,7 +149,7 @@ async def test_washer_sensor_values(
|
|||||||
state_id = f"{entity_id.split('_')[0]}_detergent_level"
|
state_id = f"{entity_id.split('_')[0]}_detergent_level"
|
||||||
state = hass.states.get(state_id)
|
state = hass.states.get(state_id)
|
||||||
assert state is not None
|
assert state is not None
|
||||||
assert state.state == "50%"
|
assert state.state == "50"
|
||||||
|
|
||||||
# Test the washer cycle states
|
# Test the washer cycle states
|
||||||
mock_instance.get_machine_state.return_value = MachineState.RunningMainCycle
|
mock_instance.get_machine_state.return_value = MachineState.RunningMainCycle
|
||||||
|
Loading…
x
Reference in New Issue
Block a user