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:
Åke Strandberg 2025-05-14 08:07:38 +02:00 committed by GitHub
parent ab5d60e33d
commit 9aa2664188
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 5 deletions

View File

@ -339,7 +339,7 @@ class StateProgramType(MieleEnum):
automatic_program = 2
cleaning_care_program = 3
maintenance_program = 4
unknown = -9999
missing2none = -9999
class StateDryingStep(MieleEnum):
@ -353,7 +353,7 @@ class StateDryingStep(MieleEnum):
hand_iron_2 = 5
machine_iron = 6
smoothing = 7
unknown = -9999
missing2none = -9999
WASHING_MACHINE_PROGRAM_ID: dict[int, str] = {

View File

@ -82,7 +82,7 @@ class MieleVacuumStateCode(MieleEnum):
blocked_front_wheel = 5900
docked = 5903, 5904
remote_controlled = 5910
unknown = -9999
missing2none = -9999
SUPPORTED_FEATURES = (

View File

@ -788,7 +788,6 @@
'maintenance_program',
'normal_operation_mode',
'own_program',
'unknown',
]),
}),
'config_entry_id': <ANY>,
@ -830,7 +829,6 @@
'maintenance_program',
'normal_operation_mode',
'own_program',
'unknown',
]),
}),
'context': <ANY>,