mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +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 = {
|
||||
"0": "unknown",
|
||||
"1": "empty",
|
||||
"2": "25%",
|
||||
"3": "50%",
|
||||
"4": "100%",
|
||||
"2": "25",
|
||||
"3": "50",
|
||||
"4": "100",
|
||||
"5": "active",
|
||||
}
|
||||
|
||||
|
@ -51,9 +51,9 @@
|
||||
"state": {
|
||||
"unknown": "Unknown",
|
||||
"empty": "Empty",
|
||||
"25%": "25%",
|
||||
"50%": "50%",
|
||||
"100%": "100%",
|
||||
"25": "25%",
|
||||
"50": "50%",
|
||||
"100": "100%",
|
||||
"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 = hass.states.get(state_id)
|
||||
assert state is not None
|
||||
assert state.state == "50%"
|
||||
assert state.state == "50"
|
||||
|
||||
# Test the washer cycle states
|
||||
mock_instance.get_machine_state.return_value = MachineState.RunningMainCycle
|
||||
|
Loading…
x
Reference in New Issue
Block a user