mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 23:57:06 +00:00
Change unknown to unknown_code for missing Miele codes to avoid confusion (#144699)
* Change unknown to unknown_code * Update snapshot * Automatically replace missing codes with None * Update snapshot
This commit is contained in:
parent
ab5d60e33d
commit
9aa2664188
@ -339,7 +339,7 @@ class StateProgramType(MieleEnum):
|
|||||||
automatic_program = 2
|
automatic_program = 2
|
||||||
cleaning_care_program = 3
|
cleaning_care_program = 3
|
||||||
maintenance_program = 4
|
maintenance_program = 4
|
||||||
unknown = -9999
|
missing2none = -9999
|
||||||
|
|
||||||
|
|
||||||
class StateDryingStep(MieleEnum):
|
class StateDryingStep(MieleEnum):
|
||||||
@ -353,7 +353,7 @@ class StateDryingStep(MieleEnum):
|
|||||||
hand_iron_2 = 5
|
hand_iron_2 = 5
|
||||||
machine_iron = 6
|
machine_iron = 6
|
||||||
smoothing = 7
|
smoothing = 7
|
||||||
unknown = -9999
|
missing2none = -9999
|
||||||
|
|
||||||
|
|
||||||
WASHING_MACHINE_PROGRAM_ID: dict[int, str] = {
|
WASHING_MACHINE_PROGRAM_ID: dict[int, str] = {
|
||||||
|
@ -82,7 +82,7 @@ class MieleVacuumStateCode(MieleEnum):
|
|||||||
blocked_front_wheel = 5900
|
blocked_front_wheel = 5900
|
||||||
docked = 5903, 5904
|
docked = 5903, 5904
|
||||||
remote_controlled = 5910
|
remote_controlled = 5910
|
||||||
unknown = -9999
|
missing2none = -9999
|
||||||
|
|
||||||
|
|
||||||
SUPPORTED_FEATURES = (
|
SUPPORTED_FEATURES = (
|
||||||
|
@ -788,7 +788,6 @@
|
|||||||
'maintenance_program',
|
'maintenance_program',
|
||||||
'normal_operation_mode',
|
'normal_operation_mode',
|
||||||
'own_program',
|
'own_program',
|
||||||
'unknown',
|
|
||||||
]),
|
]),
|
||||||
}),
|
}),
|
||||||
'config_entry_id': <ANY>,
|
'config_entry_id': <ANY>,
|
||||||
@ -830,7 +829,6 @@
|
|||||||
'maintenance_program',
|
'maintenance_program',
|
||||||
'normal_operation_mode',
|
'normal_operation_mode',
|
||||||
'own_program',
|
'own_program',
|
||||||
'unknown',
|
|
||||||
]),
|
]),
|
||||||
}),
|
}),
|
||||||
'context': <ANY>,
|
'context': <ANY>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user