mirror of
https://github.com/home-assistant/core.git
synced 2026-04-27 05:38:00 +00:00
Add additional Miele fillingLevel sensors (#162104)
This commit is contained in:
@@ -32,6 +32,12 @@
|
||||
"core_temperature": {
|
||||
"default": "mdi:thermometer-probe"
|
||||
},
|
||||
"degreasing_counter": {
|
||||
"default": "mdi:hydro-power"
|
||||
},
|
||||
"descaling_counter": {
|
||||
"default": "mdi:water-alert-outline"
|
||||
},
|
||||
"drying_step": {
|
||||
"default": "mdi:water-outline"
|
||||
},
|
||||
@@ -44,6 +50,9 @@
|
||||
"finish": {
|
||||
"default": "mdi:clock-end"
|
||||
},
|
||||
"milk_cleaning_counter": {
|
||||
"default": "mdi:pipe"
|
||||
},
|
||||
"plate": {
|
||||
"default": "mdi:circle-outline",
|
||||
"state": {
|
||||
|
||||
@@ -759,6 +759,36 @@ POLLED_SENSOR_TYPES: Final[tuple[MieleSensorDefinition[MieleFillingLevel], ...]]
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
),
|
||||
MieleSensorDefinition(
|
||||
types=(MieleAppliance.COFFEE_SYSTEM,),
|
||||
description=MieleSensorDescription[MieleFillingLevel](
|
||||
key="descaling_counter",
|
||||
translation_key="descaling_counter",
|
||||
value_fn=lambda value: value.descaling_counter,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
),
|
||||
MieleSensorDefinition(
|
||||
types=(MieleAppliance.COFFEE_SYSTEM,),
|
||||
description=MieleSensorDescription[MieleFillingLevel](
|
||||
key="degreasing_counter",
|
||||
translation_key="degreasing_counter",
|
||||
value_fn=lambda value: value.degreasing_counter,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
),
|
||||
MieleSensorDefinition(
|
||||
types=(MieleAppliance.COFFEE_SYSTEM,),
|
||||
description=MieleSensorDescription[MieleFillingLevel](
|
||||
key="milk_cleaning_counter",
|
||||
translation_key="milk_cleaning_counter",
|
||||
value_fn=lambda value: value.milk_cleaning_counter,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -206,6 +206,12 @@
|
||||
"core_temperature": {
|
||||
"name": "Core temperature"
|
||||
},
|
||||
"degreasing_counter": {
|
||||
"name": "Degreasing cycles"
|
||||
},
|
||||
"descaling_counter": {
|
||||
"name": "Descaling cycles"
|
||||
},
|
||||
"drying_step": {
|
||||
"name": "Drying step",
|
||||
"state": {
|
||||
@@ -231,6 +237,9 @@
|
||||
"finish": {
|
||||
"name": "Finish"
|
||||
},
|
||||
"milk_cleaning_counter": {
|
||||
"name": "Milk pipework cleaning cycles"
|
||||
},
|
||||
"plate": {
|
||||
"name": "Plate {plate_no}",
|
||||
"state": {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -109,7 +109,7 @@ async def test_devices_multiple_created_count(
|
||||
"""Test that multiple devices are created."""
|
||||
await setup_integration(hass, mock_config_entry)
|
||||
|
||||
assert len(device_registry.devices) == 7
|
||||
assert len(device_registry.devices) == 8
|
||||
|
||||
|
||||
async def test_device_info(
|
||||
|
||||
Reference in New Issue
Block a user