Address invalid keys in translation for whirlpool (#85849)

This commit is contained in:
mkmer 2023-01-15 11:09:14 -05:00 committed by GitHub
parent 104f74054b
commit 1a0bce715a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -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",
} }

View File

@ -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%]"
} }
} }

View File

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