Skip to content

Commit d608c9c

Browse files
committed
Line up diagnostics configs with Core
1 parent 192deef commit d608c9c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

custom_components/plugwise/binary_sensor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class PlugwiseBinarySensorEntityDescription(BinarySensorEntityDescription):
7171
PlugwiseBinarySensorEntityDescription(
7272
key=DHW_STATE,
7373
translation_key=DHW_STATE,
74+
entity_category=EntityCategory.DIAGNOSTIC,
7475
),
7576
PlugwiseBinarySensorEntityDescription(
7677
key=FLAME_STATE,
@@ -80,10 +81,12 @@ class PlugwiseBinarySensorEntityDescription(BinarySensorEntityDescription):
8081
PlugwiseBinarySensorEntityDescription(
8182
key=HEATING_STATE,
8283
translation_key=HEATING_STATE,
84+
entity_category=EntityCategory.DIAGNOSTIC,
8385
),
8486
PlugwiseBinarySensorEntityDescription(
8587
key=COOLING_STATE,
8688
translation_key=COOLING_STATE,
89+
entity_category=EntityCategory.DIAGNOSTIC,
8790
),
8891
PlugwiseBinarySensorEntityDescription(
8992
key=SECONDARY_BOILER_STATE,
@@ -93,6 +96,7 @@ class PlugwiseBinarySensorEntityDescription(BinarySensorEntityDescription):
9396
PlugwiseBinarySensorEntityDescription(
9497
key=PLUGWISE_NOTIFICATION,
9598
translation_key=PLUGWISE_NOTIFICATION,
99+
entity_category=EntityCategory.DIAGNOSTIC,
96100
),
97101
)
98102

custom_components/plugwise/sensor.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ class PlugwiseSensorEntityDescription(SensorEntityDescription):
127127
translation_key=INTENDED_BOILER_TEMP,
128128
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
129129
device_class=SensorDeviceClass.TEMPERATURE,
130+
entity_category=EntityCategory.DIAGNOSTIC,
130131
state_class=SensorStateClass.MEASUREMENT,
131132
),
132133
PlugwiseSensorEntityDescription(
@@ -142,6 +143,7 @@ class PlugwiseSensorEntityDescription(SensorEntityDescription):
142143
translation_key=OUTDOOR_TEMP,
143144
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
144145
device_class=SensorDeviceClass.TEMPERATURE,
146+
entity_category=EntityCategory.DIAGNOSTIC,
145147
state_class=SensorStateClass.MEASUREMENT,
146148
suggested_display_precision=1,
147149
),
@@ -158,6 +160,7 @@ class PlugwiseSensorEntityDescription(SensorEntityDescription):
158160
translation_key=WATER_TEMP,
159161
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
160162
device_class=SensorDeviceClass.TEMPERATURE,
163+
entity_category=EntityCategory.DIAGNOSTIC,
161164
state_class=SensorStateClass.MEASUREMENT,
162165
),
163166
PlugwiseSensorEntityDescription(
@@ -393,12 +396,14 @@ class PlugwiseSensorEntityDescription(SensorEntityDescription):
393396
key="battery",
394397
native_unit_of_measurement=PERCENTAGE,
395398
device_class=SensorDeviceClass.BATTERY,
399+
entity_category=EntityCategory.DIAGNOSTIC,
396400
state_class=SensorStateClass.MEASUREMENT,
397401
),
398402
PlugwiseSensorEntityDescription(
399403
key="illuminance",
400404
native_unit_of_measurement=LIGHT_LUX,
401405
device_class=SensorDeviceClass.ILLUMINANCE,
406+
entity_category=EntityCategory.DIAGNOSTIC,
402407
state_class=SensorStateClass.MEASUREMENT,
403408
),
404409
PlugwiseSensorEntityDescription(
@@ -412,6 +417,7 @@ class PlugwiseSensorEntityDescription(SensorEntityDescription):
412417
key=VALVE_POS,
413418
translation_key=VALVE_POS,
414419
native_unit_of_measurement=PERCENTAGE,
420+
entity_category=EntityCategory.DIAGNOSTIC,
415421
state_class=SensorStateClass.MEASUREMENT,
416422
),
417423
PlugwiseSensorEntityDescription(
@@ -433,13 +439,15 @@ class PlugwiseSensorEntityDescription(SensorEntityDescription):
433439
translation_key=DHW_TEMP,
434440
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
435441
device_class=SensorDeviceClass.TEMPERATURE,
442+
entity_category=EntityCategory.DIAGNOSTIC,
436443
state_class=SensorStateClass.MEASUREMENT,
437444
),
438445
PlugwiseSensorEntityDescription(
439446
key=DHW_SETPOINT,
440447
translation_key=DHW_SETPOINT,
441448
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
442449
device_class=SensorDeviceClass.TEMPERATURE,
450+
entity_category=EntityCategory.DIAGNOSTIC,
443451
state_class=SensorStateClass.MEASUREMENT,
444452
),
445453
)

0 commit comments

Comments
 (0)