Skip to content

Commit 53b8914

Browse files
authored
Merge pull request #952 from plugwise/remove_diagn
Request: remove diagnostics category from climate-zone temperature sensors and more
2 parents 9a9736d + 107d71a commit 53b8914

File tree

4 files changed

+2
-15
lines changed

4 files changed

+2
-15
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Versions from 0.40 and up
44

55
## Ongoing
66

7+
- Revisit diagnostics category assignments based on [#810](https://github.com/plugwise/python-plugwise/issues/810) via PR [#952](https://github.com/plugwise/plugwise-beta/pull/952)
78
- New feature: implement setting Adam zone profile via PR [#958](https://github.com/plugwise/plugwise-beta/pull/958)
89
- Implement translation for added homeassistantError raise message via PR [#948](https://github.com/plugwise/plugwise-beta/pull/948)
910
- Line up strings with Core Plugwise strings via PR [#954](https://github.com/plugwise/plugwise-beta/pull/954)

custom_components/plugwise/binary_sensor.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ class PlugwiseBinarySensorEntityDescription(BinarySensorEntityDescription):
7171
PlugwiseBinarySensorEntityDescription(
7272
key=DHW_STATE,
7373
translation_key=DHW_STATE,
74-
entity_category=EntityCategory.DIAGNOSTIC,
7574
),
7675
PlugwiseBinarySensorEntityDescription(
7776
key=FLAME_STATE,
@@ -81,12 +80,10 @@ class PlugwiseBinarySensorEntityDescription(BinarySensorEntityDescription):
8180
PlugwiseBinarySensorEntityDescription(
8281
key=HEATING_STATE,
8382
translation_key=HEATING_STATE,
84-
entity_category=EntityCategory.DIAGNOSTIC,
8583
),
8684
PlugwiseBinarySensorEntityDescription(
8785
key=COOLING_STATE,
8886
translation_key=COOLING_STATE,
89-
entity_category=EntityCategory.DIAGNOSTIC,
9087
),
9188
PlugwiseBinarySensorEntityDescription(
9289
key=SECONDARY_BOILER_STATE,
@@ -96,7 +93,6 @@ class PlugwiseBinarySensorEntityDescription(BinarySensorEntityDescription):
9693
PlugwiseBinarySensorEntityDescription(
9794
key=PLUGWISE_NOTIFICATION,
9895
translation_key=PLUGWISE_NOTIFICATION,
99-
entity_category=EntityCategory.DIAGNOSTIC,
10096
),
10197
)
10298

custom_components/plugwise/select.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class PlugwiseSelectEntityDescription(SelectEntityDescription):
4747
PlugwiseSelectEntityDescription(
4848
key=SELECT_SCHEDULE,
4949
translation_key=SELECT_SCHEDULE,
50+
entity_category=EntityCategory.CONFIG,
5051
options_key=AVAILABLE_SCHEDULES,
5152
),
5253
PlugwiseSelectEntityDescription(

custom_components/plugwise/sensor.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,37 +101,32 @@ class PlugwiseSensorEntityDescription(SensorEntityDescription):
101101
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
102102
device_class=SensorDeviceClass.TEMPERATURE,
103103
state_class=SensorStateClass.MEASUREMENT,
104-
entity_category=EntityCategory.DIAGNOSTIC,
105104
),
106105
PlugwiseSensorEntityDescription(
107106
key=TARGET_TEMP_HIGH,
108107
translation_key="cooling_setpoint",
109108
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
110109
device_class=SensorDeviceClass.TEMPERATURE,
111110
state_class=SensorStateClass.MEASUREMENT,
112-
entity_category=EntityCategory.DIAGNOSTIC,
113111
),
114112
PlugwiseSensorEntityDescription(
115113
key=TARGET_TEMP_LOW,
116114
translation_key="heating_setpoint",
117115
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
118116
device_class=SensorDeviceClass.TEMPERATURE,
119117
state_class=SensorStateClass.MEASUREMENT,
120-
entity_category=EntityCategory.DIAGNOSTIC,
121118
),
122119
PlugwiseSensorEntityDescription(
123120
key=ATTR_TEMPERATURE,
124121
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
125122
device_class=SensorDeviceClass.TEMPERATURE,
126-
entity_category=EntityCategory.DIAGNOSTIC,
127123
state_class=SensorStateClass.MEASUREMENT,
128124
),
129125
PlugwiseSensorEntityDescription(
130126
key=INTENDED_BOILER_TEMP,
131127
translation_key=INTENDED_BOILER_TEMP,
132128
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
133129
device_class=SensorDeviceClass.TEMPERATURE,
134-
entity_category=EntityCategory.DIAGNOSTIC,
135130
state_class=SensorStateClass.MEASUREMENT,
136131
),
137132
PlugwiseSensorEntityDescription(
@@ -163,7 +158,6 @@ class PlugwiseSensorEntityDescription(SensorEntityDescription):
163158
translation_key=WATER_TEMP,
164159
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
165160
device_class=SensorDeviceClass.TEMPERATURE,
166-
entity_category=EntityCategory.DIAGNOSTIC,
167161
state_class=SensorStateClass.MEASUREMENT,
168162
),
169163
PlugwiseSensorEntityDescription(
@@ -399,15 +393,13 @@ class PlugwiseSensorEntityDescription(SensorEntityDescription):
399393
key="battery",
400394
native_unit_of_measurement=PERCENTAGE,
401395
device_class=SensorDeviceClass.BATTERY,
402-
entity_category=EntityCategory.DIAGNOSTIC,
403396
state_class=SensorStateClass.MEASUREMENT,
404397
),
405398
PlugwiseSensorEntityDescription(
406399
key="illuminance",
407400
native_unit_of_measurement=LIGHT_LUX,
408401
device_class=SensorDeviceClass.ILLUMINANCE,
409402
state_class=SensorStateClass.MEASUREMENT,
410-
entity_category=EntityCategory.DIAGNOSTIC,
411403
),
412404
PlugwiseSensorEntityDescription(
413405
key=MOD_LEVEL,
@@ -419,7 +411,6 @@ class PlugwiseSensorEntityDescription(SensorEntityDescription):
419411
PlugwiseSensorEntityDescription(
420412
key=VALVE_POS,
421413
translation_key=VALVE_POS,
422-
entity_category=EntityCategory.DIAGNOSTIC,
423414
native_unit_of_measurement=PERCENTAGE,
424415
state_class=SensorStateClass.MEASUREMENT,
425416
),
@@ -442,15 +433,13 @@ class PlugwiseSensorEntityDescription(SensorEntityDescription):
442433
translation_key=DHW_TEMP,
443434
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
444435
device_class=SensorDeviceClass.TEMPERATURE,
445-
entity_category=EntityCategory.DIAGNOSTIC,
446436
state_class=SensorStateClass.MEASUREMENT,
447437
),
448438
PlugwiseSensorEntityDescription(
449439
key=DHW_SETPOINT,
450440
translation_key=DHW_SETPOINT,
451441
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
452442
device_class=SensorDeviceClass.TEMPERATURE,
453-
entity_category=EntityCategory.DIAGNOSTIC,
454443
state_class=SensorStateClass.MEASUREMENT,
455444
),
456445
)

0 commit comments

Comments
 (0)