Skip to content

Commit 1af8b69

Browse files
authored
Set Home Connect beverages counters as diagnostics (#138798)
Set beverages counters as diagnostics
1 parent 6ef4012 commit 1af8b69

File tree

1 file changed

+10
-1
lines changed
  • homeassistant/components/home_connect

1 file changed

+10
-1
lines changed

homeassistant/components/home_connect/sensor.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
SensorEntityDescription,
1313
SensorStateClass,
1414
)
15-
from homeassistant.const import PERCENTAGE, UnitOfTime, UnitOfVolume
15+
from homeassistant.const import PERCENTAGE, EntityCategory, UnitOfTime, UnitOfVolume
1616
from homeassistant.core import HomeAssistant, callback
1717
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
1818
from homeassistant.util import dt as dt_util, slugify
@@ -99,48 +99,57 @@ class HomeConnectSensorEntityDescription(
9999
),
100100
HomeConnectSensorEntityDescription(
101101
key=StatusKey.CONSUMER_PRODUCTS_COFFEE_MAKER_BEVERAGE_COUNTER_COFFEE,
102+
entity_category=EntityCategory.DIAGNOSTIC,
102103
state_class=SensorStateClass.TOTAL_INCREASING,
103104
translation_key="coffee_counter",
104105
),
105106
HomeConnectSensorEntityDescription(
106107
key=StatusKey.CONSUMER_PRODUCTS_COFFEE_MAKER_BEVERAGE_COUNTER_POWDER_COFFEE,
108+
entity_category=EntityCategory.DIAGNOSTIC,
107109
state_class=SensorStateClass.TOTAL_INCREASING,
108110
translation_key="powder_coffee_counter",
109111
),
110112
HomeConnectSensorEntityDescription(
111113
key=StatusKey.CONSUMER_PRODUCTS_COFFEE_MAKER_BEVERAGE_COUNTER_HOT_WATER,
114+
entity_category=EntityCategory.DIAGNOSTIC,
112115
native_unit_of_measurement=UnitOfVolume.MILLILITERS,
113116
device_class=SensorDeviceClass.VOLUME,
114117
state_class=SensorStateClass.TOTAL_INCREASING,
115118
translation_key="hot_water_counter",
116119
),
117120
HomeConnectSensorEntityDescription(
118121
key=StatusKey.CONSUMER_PRODUCTS_COFFEE_MAKER_BEVERAGE_COUNTER_HOT_WATER_CUPS,
122+
entity_category=EntityCategory.DIAGNOSTIC,
119123
state_class=SensorStateClass.TOTAL_INCREASING,
120124
translation_key="hot_water_cups_counter",
121125
),
122126
HomeConnectSensorEntityDescription(
123127
key=StatusKey.CONSUMER_PRODUCTS_COFFEE_MAKER_BEVERAGE_COUNTER_HOT_MILK,
128+
entity_category=EntityCategory.DIAGNOSTIC,
124129
state_class=SensorStateClass.TOTAL_INCREASING,
125130
translation_key="hot_milk_counter",
126131
),
127132
HomeConnectSensorEntityDescription(
128133
key=StatusKey.CONSUMER_PRODUCTS_COFFEE_MAKER_BEVERAGE_COUNTER_FROTHY_MILK,
134+
entity_category=EntityCategory.DIAGNOSTIC,
129135
state_class=SensorStateClass.TOTAL_INCREASING,
130136
translation_key="frothy_milk_counter",
131137
),
132138
HomeConnectSensorEntityDescription(
133139
key=StatusKey.CONSUMER_PRODUCTS_COFFEE_MAKER_BEVERAGE_COUNTER_MILK,
140+
entity_category=EntityCategory.DIAGNOSTIC,
134141
state_class=SensorStateClass.TOTAL_INCREASING,
135142
translation_key="milk_counter",
136143
),
137144
HomeConnectSensorEntityDescription(
138145
key=StatusKey.CONSUMER_PRODUCTS_COFFEE_MAKER_BEVERAGE_COUNTER_COFFEE_AND_MILK,
146+
entity_category=EntityCategory.DIAGNOSTIC,
139147
state_class=SensorStateClass.TOTAL_INCREASING,
140148
translation_key="coffee_and_milk_counter",
141149
),
142150
HomeConnectSensorEntityDescription(
143151
key=StatusKey.CONSUMER_PRODUCTS_COFFEE_MAKER_BEVERAGE_COUNTER_RISTRETTO_ESPRESSO,
152+
entity_category=EntityCategory.DIAGNOSTIC,
144153
state_class=SensorStateClass.TOTAL_INCREASING,
145154
translation_key="ristretto_espresso_counter",
146155
),

0 commit comments

Comments
 (0)