mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02: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:
@@ -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] = {
|
||||
|
@@ -82,7 +82,7 @@ class MieleVacuumStateCode(MieleEnum):
|
||||
blocked_front_wheel = 5900
|
||||
docked = 5903, 5904
|
||||
remote_controlled = 5910
|
||||
unknown = -9999
|
||||
missing2none = -9999
|
||||
|
||||
|
||||
SUPPORTED_FEATURES = (
|
||||
|
@@ -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>,
|
||||
|
Reference in New Issue
Block a user