mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Categorize burner and compressor sensors as diagnostic entities in ViCare integration (#110653)
Categorize Burner and Compressor start and runtime counters as diagnostic entities in ViCare integration
This commit is contained in:
parent
3526fd66df
commit
1372cf5a18
@ -600,6 +600,7 @@ BURNER_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
|
|||||||
translation_key="burner_starts",
|
translation_key="burner_starts",
|
||||||
icon="mdi:counter",
|
icon="mdi:counter",
|
||||||
value_getter=lambda api: api.getStarts(),
|
value_getter=lambda api: api.getStarts(),
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
ViCareSensorEntityDescription(
|
ViCareSensorEntityDescription(
|
||||||
@ -608,6 +609,7 @@ BURNER_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
|
|||||||
icon="mdi:counter",
|
icon="mdi:counter",
|
||||||
native_unit_of_measurement=UnitOfTime.HOURS,
|
native_unit_of_measurement=UnitOfTime.HOURS,
|
||||||
value_getter=lambda api: api.getHours(),
|
value_getter=lambda api: api.getHours(),
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
ViCareSensorEntityDescription(
|
ViCareSensorEntityDescription(
|
||||||
@ -626,6 +628,7 @@ COMPRESSOR_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
|
|||||||
translation_key="compressor_starts",
|
translation_key="compressor_starts",
|
||||||
icon="mdi:counter",
|
icon="mdi:counter",
|
||||||
value_getter=lambda api: api.getStarts(),
|
value_getter=lambda api: api.getStarts(),
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
ViCareSensorEntityDescription(
|
ViCareSensorEntityDescription(
|
||||||
@ -634,6 +637,7 @@ COMPRESSOR_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
|
|||||||
icon="mdi:counter",
|
icon="mdi:counter",
|
||||||
native_unit_of_measurement=UnitOfTime.HOURS,
|
native_unit_of_measurement=UnitOfTime.HOURS,
|
||||||
value_getter=lambda api: api.getHours(),
|
value_getter=lambda api: api.getHours(),
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
ViCareSensorEntityDescription(
|
ViCareSensorEntityDescription(
|
||||||
@ -642,6 +646,7 @@ COMPRESSOR_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
|
|||||||
icon="mdi:counter",
|
icon="mdi:counter",
|
||||||
native_unit_of_measurement=UnitOfTime.HOURS,
|
native_unit_of_measurement=UnitOfTime.HOURS,
|
||||||
value_getter=lambda api: api.getHoursLoadClass1(),
|
value_getter=lambda api: api.getHoursLoadClass1(),
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
),
|
),
|
||||||
@ -651,6 +656,7 @@ COMPRESSOR_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
|
|||||||
icon="mdi:counter",
|
icon="mdi:counter",
|
||||||
native_unit_of_measurement=UnitOfTime.HOURS,
|
native_unit_of_measurement=UnitOfTime.HOURS,
|
||||||
value_getter=lambda api: api.getHoursLoadClass2(),
|
value_getter=lambda api: api.getHoursLoadClass2(),
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
),
|
),
|
||||||
@ -660,6 +666,7 @@ COMPRESSOR_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
|
|||||||
icon="mdi:counter",
|
icon="mdi:counter",
|
||||||
native_unit_of_measurement=UnitOfTime.HOURS,
|
native_unit_of_measurement=UnitOfTime.HOURS,
|
||||||
value_getter=lambda api: api.getHoursLoadClass3(),
|
value_getter=lambda api: api.getHoursLoadClass3(),
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
),
|
),
|
||||||
@ -669,6 +676,7 @@ COMPRESSOR_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
|
|||||||
icon="mdi:counter",
|
icon="mdi:counter",
|
||||||
native_unit_of_measurement=UnitOfTime.HOURS,
|
native_unit_of_measurement=UnitOfTime.HOURS,
|
||||||
value_getter=lambda api: api.getHoursLoadClass4(),
|
value_getter=lambda api: api.getHoursLoadClass4(),
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
),
|
),
|
||||||
@ -678,6 +686,7 @@ COMPRESSOR_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
|
|||||||
icon="mdi:counter",
|
icon="mdi:counter",
|
||||||
native_unit_of_measurement=UnitOfTime.HOURS,
|
native_unit_of_measurement=UnitOfTime.HOURS,
|
||||||
value_getter=lambda api: api.getHoursLoadClass5(),
|
value_getter=lambda api: api.getHoursLoadClass5(),
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user