Skip to content

Commit

Permalink
Categorize burner and compressor sensors as diagnostic entities in Vi…
Browse files Browse the repository at this point in the history
…Care integration (#110653)

Categorize Burner and Compressor start and runtime counters as diagnostic entities in ViCare integration
  • Loading branch information
CFenner authored Feb 15, 2024
1 parent 3526fd6 commit 1372cf5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions homeassistant/components/vicare/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@ class ViCareSensorEntityDescription(SensorEntityDescription, ViCareRequiredKeysM
translation_key="burner_starts",
icon="mdi:counter",
value_getter=lambda api: api.getStarts(),
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL_INCREASING,
),
ViCareSensorEntityDescription(
Expand All @@ -608,6 +609,7 @@ class ViCareSensorEntityDescription(SensorEntityDescription, ViCareRequiredKeysM
icon="mdi:counter",
native_unit_of_measurement=UnitOfTime.HOURS,
value_getter=lambda api: api.getHours(),
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL_INCREASING,
),
ViCareSensorEntityDescription(
Expand All @@ -626,6 +628,7 @@ class ViCareSensorEntityDescription(SensorEntityDescription, ViCareRequiredKeysM
translation_key="compressor_starts",
icon="mdi:counter",
value_getter=lambda api: api.getStarts(),
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL_INCREASING,
),
ViCareSensorEntityDescription(
Expand All @@ -634,6 +637,7 @@ class ViCareSensorEntityDescription(SensorEntityDescription, ViCareRequiredKeysM
icon="mdi:counter",
native_unit_of_measurement=UnitOfTime.HOURS,
value_getter=lambda api: api.getHours(),
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL_INCREASING,
),
ViCareSensorEntityDescription(
Expand All @@ -642,6 +646,7 @@ class ViCareSensorEntityDescription(SensorEntityDescription, ViCareRequiredKeysM
icon="mdi:counter",
native_unit_of_measurement=UnitOfTime.HOURS,
value_getter=lambda api: api.getHoursLoadClass1(),
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL_INCREASING,
entity_registry_enabled_default=False,
),
Expand All @@ -651,6 +656,7 @@ class ViCareSensorEntityDescription(SensorEntityDescription, ViCareRequiredKeysM
icon="mdi:counter",
native_unit_of_measurement=UnitOfTime.HOURS,
value_getter=lambda api: api.getHoursLoadClass2(),
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL_INCREASING,
entity_registry_enabled_default=False,
),
Expand All @@ -660,6 +666,7 @@ class ViCareSensorEntityDescription(SensorEntityDescription, ViCareRequiredKeysM
icon="mdi:counter",
native_unit_of_measurement=UnitOfTime.HOURS,
value_getter=lambda api: api.getHoursLoadClass3(),
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL_INCREASING,
entity_registry_enabled_default=False,
),
Expand All @@ -669,6 +676,7 @@ class ViCareSensorEntityDescription(SensorEntityDescription, ViCareRequiredKeysM
icon="mdi:counter",
native_unit_of_measurement=UnitOfTime.HOURS,
value_getter=lambda api: api.getHoursLoadClass4(),
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL_INCREASING,
entity_registry_enabled_default=False,
),
Expand All @@ -678,6 +686,7 @@ class ViCareSensorEntityDescription(SensorEntityDescription, ViCareRequiredKeysM
icon="mdi:counter",
native_unit_of_measurement=UnitOfTime.HOURS,
value_getter=lambda api: api.getHoursLoadClass5(),
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.TOTAL_INCREASING,
entity_registry_enabled_default=False,
),
Expand Down

0 comments on commit 1372cf5

Please sign in to comment.