Skip to content

Commit 02ed584

Browse files
authored
Merge pull request #965 from plugwise/core-diag
Line up diagnostics configs with Core
2 parents 192deef + 47b3cdc commit 02ed584

File tree

5 files changed

+16
-3
lines changed

5 files changed

+16
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
Versions from 0.40 and up
44

5-
## Ongoing
5+
## v0.61.0
66

7+
- Final revisit of diagnostics category assignments as accepted in Core Plugwise, via PR [#965](https://github.com/plugwise/plugwise-beta/pull/965)
78
- 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)
89
- New feature: implement setting Adam zone profile via PR [#958](https://github.com/plugwise/plugwise-beta/pull/958)
910
- Implement translation for added homeassistantError raise message via PR [#948](https://github.com/plugwise/plugwise-beta/pull/948)

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/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"iot_class": "local_polling",
99
"loggers": ["plugwise"],
1010
"requirements": ["plugwise==1.10.0"],
11-
"version": "0.60.0",
11+
"version": "0.61.0",
1212
"zeroconf": ["_plugwise._tcp.local."]
1313
}

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
)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "plugwise-beta"
3-
version = "0.60.0"
3+
version = "0.61.0"
44
description = "Plugwise beta custom-component"
55
readme = "README.md"
66
requires-python = ">=3.13"

0 commit comments

Comments
 (0)