mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Refactor states and strings for Miele plate power steps (#144992)
* WIP * Fix type check * Empty commit
This commit is contained in:
@@ -97,30 +97,26 @@
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'options': list([
|
||||
'0',
|
||||
'110',
|
||||
'220',
|
||||
'1',
|
||||
'2',
|
||||
'3',
|
||||
'4',
|
||||
'5',
|
||||
'6',
|
||||
'7',
|
||||
'8',
|
||||
'9',
|
||||
'10',
|
||||
'11',
|
||||
'12',
|
||||
'13',
|
||||
'14',
|
||||
'15',
|
||||
'16',
|
||||
'17',
|
||||
'18',
|
||||
'117',
|
||||
'118',
|
||||
'217',
|
||||
'plate_step_0',
|
||||
'plate_step_1',
|
||||
'plate_step_10',
|
||||
'plate_step_11',
|
||||
'plate_step_12',
|
||||
'plate_step_13',
|
||||
'plate_step_15',
|
||||
'plate_step_16',
|
||||
'plate_step_17',
|
||||
'plate_step_18',
|
||||
'plate_step_2',
|
||||
'plate_step_3',
|
||||
'plate_step_4',
|
||||
'plate_step_5',
|
||||
'plate_step_6',
|
||||
'plate_step_7',
|
||||
'plate_step_8',
|
||||
'plate_step_9',
|
||||
'plate_step_boost',
|
||||
'plate_step_warming',
|
||||
]),
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
@@ -158,30 +154,26 @@
|
||||
'device_class': 'enum',
|
||||
'friendly_name': 'Hob with extraction Plate 1',
|
||||
'options': list([
|
||||
'0',
|
||||
'110',
|
||||
'220',
|
||||
'1',
|
||||
'2',
|
||||
'3',
|
||||
'4',
|
||||
'5',
|
||||
'6',
|
||||
'7',
|
||||
'8',
|
||||
'9',
|
||||
'10',
|
||||
'11',
|
||||
'12',
|
||||
'13',
|
||||
'14',
|
||||
'15',
|
||||
'16',
|
||||
'17',
|
||||
'18',
|
||||
'117',
|
||||
'118',
|
||||
'217',
|
||||
'plate_step_0',
|
||||
'plate_step_1',
|
||||
'plate_step_10',
|
||||
'plate_step_11',
|
||||
'plate_step_12',
|
||||
'plate_step_13',
|
||||
'plate_step_15',
|
||||
'plate_step_16',
|
||||
'plate_step_17',
|
||||
'plate_step_18',
|
||||
'plate_step_2',
|
||||
'plate_step_3',
|
||||
'plate_step_4',
|
||||
'plate_step_5',
|
||||
'plate_step_6',
|
||||
'plate_step_7',
|
||||
'plate_step_8',
|
||||
'plate_step_9',
|
||||
'plate_step_boost',
|
||||
'plate_step_warming',
|
||||
]),
|
||||
}),
|
||||
'context': <ANY>,
|
||||
@@ -189,7 +181,7 @@
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '0',
|
||||
'state': 'plate_step_0',
|
||||
})
|
||||
# ---
|
||||
# name: test_hob_sensor_states[platforms0-hob.json][sensor.hob_with_extraction_plate_2-entry]
|
||||
@@ -199,30 +191,26 @@
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'options': list([
|
||||
'0',
|
||||
'110',
|
||||
'220',
|
||||
'1',
|
||||
'2',
|
||||
'3',
|
||||
'4',
|
||||
'5',
|
||||
'6',
|
||||
'7',
|
||||
'8',
|
||||
'9',
|
||||
'10',
|
||||
'11',
|
||||
'12',
|
||||
'13',
|
||||
'14',
|
||||
'15',
|
||||
'16',
|
||||
'17',
|
||||
'18',
|
||||
'117',
|
||||
'118',
|
||||
'217',
|
||||
'plate_step_0',
|
||||
'plate_step_1',
|
||||
'plate_step_10',
|
||||
'plate_step_11',
|
||||
'plate_step_12',
|
||||
'plate_step_13',
|
||||
'plate_step_15',
|
||||
'plate_step_16',
|
||||
'plate_step_17',
|
||||
'plate_step_18',
|
||||
'plate_step_2',
|
||||
'plate_step_3',
|
||||
'plate_step_4',
|
||||
'plate_step_5',
|
||||
'plate_step_6',
|
||||
'plate_step_7',
|
||||
'plate_step_8',
|
||||
'plate_step_9',
|
||||
'plate_step_boost',
|
||||
'plate_step_warming',
|
||||
]),
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
@@ -260,30 +248,26 @@
|
||||
'device_class': 'enum',
|
||||
'friendly_name': 'Hob with extraction Plate 2',
|
||||
'options': list([
|
||||
'0',
|
||||
'110',
|
||||
'220',
|
||||
'1',
|
||||
'2',
|
||||
'3',
|
||||
'4',
|
||||
'5',
|
||||
'6',
|
||||
'7',
|
||||
'8',
|
||||
'9',
|
||||
'10',
|
||||
'11',
|
||||
'12',
|
||||
'13',
|
||||
'14',
|
||||
'15',
|
||||
'16',
|
||||
'17',
|
||||
'18',
|
||||
'117',
|
||||
'118',
|
||||
'217',
|
||||
'plate_step_0',
|
||||
'plate_step_1',
|
||||
'plate_step_10',
|
||||
'plate_step_11',
|
||||
'plate_step_12',
|
||||
'plate_step_13',
|
||||
'plate_step_15',
|
||||
'plate_step_16',
|
||||
'plate_step_17',
|
||||
'plate_step_18',
|
||||
'plate_step_2',
|
||||
'plate_step_3',
|
||||
'plate_step_4',
|
||||
'plate_step_5',
|
||||
'plate_step_6',
|
||||
'plate_step_7',
|
||||
'plate_step_8',
|
||||
'plate_step_9',
|
||||
'plate_step_boost',
|
||||
'plate_step_warming',
|
||||
]),
|
||||
}),
|
||||
'context': <ANY>,
|
||||
@@ -291,7 +275,7 @@
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '110',
|
||||
'state': 'plate_step_warming',
|
||||
})
|
||||
# ---
|
||||
# name: test_hob_sensor_states[platforms0-hob.json][sensor.hob_with_extraction_plate_3-entry]
|
||||
@@ -301,30 +285,26 @@
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'options': list([
|
||||
'0',
|
||||
'110',
|
||||
'220',
|
||||
'1',
|
||||
'2',
|
||||
'3',
|
||||
'4',
|
||||
'5',
|
||||
'6',
|
||||
'7',
|
||||
'8',
|
||||
'9',
|
||||
'10',
|
||||
'11',
|
||||
'12',
|
||||
'13',
|
||||
'14',
|
||||
'15',
|
||||
'16',
|
||||
'17',
|
||||
'18',
|
||||
'117',
|
||||
'118',
|
||||
'217',
|
||||
'plate_step_0',
|
||||
'plate_step_1',
|
||||
'plate_step_10',
|
||||
'plate_step_11',
|
||||
'plate_step_12',
|
||||
'plate_step_13',
|
||||
'plate_step_15',
|
||||
'plate_step_16',
|
||||
'plate_step_17',
|
||||
'plate_step_18',
|
||||
'plate_step_2',
|
||||
'plate_step_3',
|
||||
'plate_step_4',
|
||||
'plate_step_5',
|
||||
'plate_step_6',
|
||||
'plate_step_7',
|
||||
'plate_step_8',
|
||||
'plate_step_9',
|
||||
'plate_step_boost',
|
||||
'plate_step_warming',
|
||||
]),
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
@@ -362,30 +342,26 @@
|
||||
'device_class': 'enum',
|
||||
'friendly_name': 'Hob with extraction Plate 3',
|
||||
'options': list([
|
||||
'0',
|
||||
'110',
|
||||
'220',
|
||||
'1',
|
||||
'2',
|
||||
'3',
|
||||
'4',
|
||||
'5',
|
||||
'6',
|
||||
'7',
|
||||
'8',
|
||||
'9',
|
||||
'10',
|
||||
'11',
|
||||
'12',
|
||||
'13',
|
||||
'14',
|
||||
'15',
|
||||
'16',
|
||||
'17',
|
||||
'18',
|
||||
'117',
|
||||
'118',
|
||||
'217',
|
||||
'plate_step_0',
|
||||
'plate_step_1',
|
||||
'plate_step_10',
|
||||
'plate_step_11',
|
||||
'plate_step_12',
|
||||
'plate_step_13',
|
||||
'plate_step_15',
|
||||
'plate_step_16',
|
||||
'plate_step_17',
|
||||
'plate_step_18',
|
||||
'plate_step_2',
|
||||
'plate_step_3',
|
||||
'plate_step_4',
|
||||
'plate_step_5',
|
||||
'plate_step_6',
|
||||
'plate_step_7',
|
||||
'plate_step_8',
|
||||
'plate_step_9',
|
||||
'plate_step_boost',
|
||||
'plate_step_warming',
|
||||
]),
|
||||
}),
|
||||
'context': <ANY>,
|
||||
@@ -393,7 +369,7 @@
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '8',
|
||||
'state': 'plate_step_8',
|
||||
})
|
||||
# ---
|
||||
# name: test_hob_sensor_states[platforms0-hob.json][sensor.hob_with_extraction_plate_4-entry]
|
||||
@@ -403,30 +379,26 @@
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'options': list([
|
||||
'0',
|
||||
'110',
|
||||
'220',
|
||||
'1',
|
||||
'2',
|
||||
'3',
|
||||
'4',
|
||||
'5',
|
||||
'6',
|
||||
'7',
|
||||
'8',
|
||||
'9',
|
||||
'10',
|
||||
'11',
|
||||
'12',
|
||||
'13',
|
||||
'14',
|
||||
'15',
|
||||
'16',
|
||||
'17',
|
||||
'18',
|
||||
'117',
|
||||
'118',
|
||||
'217',
|
||||
'plate_step_0',
|
||||
'plate_step_1',
|
||||
'plate_step_10',
|
||||
'plate_step_11',
|
||||
'plate_step_12',
|
||||
'plate_step_13',
|
||||
'plate_step_15',
|
||||
'plate_step_16',
|
||||
'plate_step_17',
|
||||
'plate_step_18',
|
||||
'plate_step_2',
|
||||
'plate_step_3',
|
||||
'plate_step_4',
|
||||
'plate_step_5',
|
||||
'plate_step_6',
|
||||
'plate_step_7',
|
||||
'plate_step_8',
|
||||
'plate_step_9',
|
||||
'plate_step_boost',
|
||||
'plate_step_warming',
|
||||
]),
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
@@ -464,30 +436,26 @@
|
||||
'device_class': 'enum',
|
||||
'friendly_name': 'Hob with extraction Plate 4',
|
||||
'options': list([
|
||||
'0',
|
||||
'110',
|
||||
'220',
|
||||
'1',
|
||||
'2',
|
||||
'3',
|
||||
'4',
|
||||
'5',
|
||||
'6',
|
||||
'7',
|
||||
'8',
|
||||
'9',
|
||||
'10',
|
||||
'11',
|
||||
'12',
|
||||
'13',
|
||||
'14',
|
||||
'15',
|
||||
'16',
|
||||
'17',
|
||||
'18',
|
||||
'117',
|
||||
'118',
|
||||
'217',
|
||||
'plate_step_0',
|
||||
'plate_step_1',
|
||||
'plate_step_10',
|
||||
'plate_step_11',
|
||||
'plate_step_12',
|
||||
'plate_step_13',
|
||||
'plate_step_15',
|
||||
'plate_step_16',
|
||||
'plate_step_17',
|
||||
'plate_step_18',
|
||||
'plate_step_2',
|
||||
'plate_step_3',
|
||||
'plate_step_4',
|
||||
'plate_step_5',
|
||||
'plate_step_6',
|
||||
'plate_step_7',
|
||||
'plate_step_8',
|
||||
'plate_step_9',
|
||||
'plate_step_boost',
|
||||
'plate_step_warming',
|
||||
]),
|
||||
}),
|
||||
'context': <ANY>,
|
||||
@@ -495,7 +463,7 @@
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '15',
|
||||
'state': 'plate_step_15',
|
||||
})
|
||||
# ---
|
||||
# name: test_hob_sensor_states[platforms0-hob.json][sensor.hob_with_extraction_plate_5-entry]
|
||||
@@ -505,30 +473,26 @@
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'options': list([
|
||||
'0',
|
||||
'110',
|
||||
'220',
|
||||
'1',
|
||||
'2',
|
||||
'3',
|
||||
'4',
|
||||
'5',
|
||||
'6',
|
||||
'7',
|
||||
'8',
|
||||
'9',
|
||||
'10',
|
||||
'11',
|
||||
'12',
|
||||
'13',
|
||||
'14',
|
||||
'15',
|
||||
'16',
|
||||
'17',
|
||||
'18',
|
||||
'117',
|
||||
'118',
|
||||
'217',
|
||||
'plate_step_0',
|
||||
'plate_step_1',
|
||||
'plate_step_10',
|
||||
'plate_step_11',
|
||||
'plate_step_12',
|
||||
'plate_step_13',
|
||||
'plate_step_15',
|
||||
'plate_step_16',
|
||||
'plate_step_17',
|
||||
'plate_step_18',
|
||||
'plate_step_2',
|
||||
'plate_step_3',
|
||||
'plate_step_4',
|
||||
'plate_step_5',
|
||||
'plate_step_6',
|
||||
'plate_step_7',
|
||||
'plate_step_8',
|
||||
'plate_step_9',
|
||||
'plate_step_boost',
|
||||
'plate_step_warming',
|
||||
]),
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
@@ -566,30 +530,26 @@
|
||||
'device_class': 'enum',
|
||||
'friendly_name': 'Hob with extraction Plate 5',
|
||||
'options': list([
|
||||
'0',
|
||||
'110',
|
||||
'220',
|
||||
'1',
|
||||
'2',
|
||||
'3',
|
||||
'4',
|
||||
'5',
|
||||
'6',
|
||||
'7',
|
||||
'8',
|
||||
'9',
|
||||
'10',
|
||||
'11',
|
||||
'12',
|
||||
'13',
|
||||
'14',
|
||||
'15',
|
||||
'16',
|
||||
'17',
|
||||
'18',
|
||||
'117',
|
||||
'118',
|
||||
'217',
|
||||
'plate_step_0',
|
||||
'plate_step_1',
|
||||
'plate_step_10',
|
||||
'plate_step_11',
|
||||
'plate_step_12',
|
||||
'plate_step_13',
|
||||
'plate_step_15',
|
||||
'plate_step_16',
|
||||
'plate_step_17',
|
||||
'plate_step_18',
|
||||
'plate_step_2',
|
||||
'plate_step_3',
|
||||
'plate_step_4',
|
||||
'plate_step_5',
|
||||
'plate_step_6',
|
||||
'plate_step_7',
|
||||
'plate_step_8',
|
||||
'plate_step_9',
|
||||
'plate_step_boost',
|
||||
'plate_step_warming',
|
||||
]),
|
||||
}),
|
||||
'context': <ANY>,
|
||||
@@ -597,7 +557,7 @@
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '117',
|
||||
'state': 'plate_step_boost',
|
||||
})
|
||||
# ---
|
||||
# name: test_sensor_states[platforms0][sensor.freezer-entry]
|
||||
|
Reference in New Issue
Block a user