mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Update plugwise to v0.25.14, improve number detection (#83345)
fixes undefined
This commit is contained in:
parent
171bed7637
commit
2c4f9ca037
@ -2,7 +2,7 @@
|
||||
"domain": "plugwise",
|
||||
"name": "Plugwise",
|
||||
"documentation": "https://www.home-assistant.io/integrations/plugwise",
|
||||
"requirements": ["plugwise==0.25.12"],
|
||||
"requirements": ["plugwise==0.25.14"],
|
||||
"codeowners": ["@CoMPaTech", "@bouwew", "@brefra", "@frenck"],
|
||||
"zeroconf": ["_plugwise._tcp.local."],
|
||||
"config_flow": true,
|
||||
|
@ -71,7 +71,7 @@ async def async_setup_entry(
|
||||
entities: list[PlugwiseNumberEntity] = []
|
||||
for device_id, device in coordinator.data.devices.items():
|
||||
for description in NUMBER_TYPES:
|
||||
if description.key in device:
|
||||
if description.key in device and "setpoint" in device[description.key]:
|
||||
entities.append(
|
||||
PlugwiseNumberEntity(coordinator, device_id, description)
|
||||
)
|
||||
|
@ -301,6 +301,22 @@ SENSORS: tuple[SensorEntityDescription, ...] = (
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="domestic_hot_water_setpoint",
|
||||
name="DHW setpoint",
|
||||
native_unit_of_measurement=TEMP_CELSIUS,
|
||||
device_class=SensorDeviceClass.TEMPERATURE,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="maximum_boiler_temperature",
|
||||
name="Maximum boiler temperature",
|
||||
native_unit_of_measurement=TEMP_CELSIUS,
|
||||
device_class=SensorDeviceClass.TEMPERATURE,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
@ -1335,7 +1335,7 @@ plexauth==0.0.6
|
||||
plexwebsocket==0.0.13
|
||||
|
||||
# homeassistant.components.plugwise
|
||||
plugwise==0.25.12
|
||||
plugwise==0.25.14
|
||||
|
||||
# homeassistant.components.plum_lightpad
|
||||
plumlightpad==0.0.11
|
||||
|
@ -962,7 +962,7 @@ plexauth==0.0.6
|
||||
plexwebsocket==0.0.13
|
||||
|
||||
# homeassistant.components.plugwise
|
||||
plugwise==0.25.12
|
||||
plugwise==0.25.14
|
||||
|
||||
# homeassistant.components.plum_lightpad
|
||||
plumlightpad==0.0.11
|
||||
|
@ -30,8 +30,9 @@
|
||||
},
|
||||
"sensors": {
|
||||
"water_temperature": 29.1,
|
||||
"domestic_hot_water_setpoint": 60.0,
|
||||
"dhw_temperature": 46.3,
|
||||
"intended_boiler_temperature": 0.0,
|
||||
"intended_boiler_temperature": 35.0,
|
||||
"modulation_level": 52,
|
||||
"return_temperature": 25.1,
|
||||
"water_pressure": 1.57,
|
||||
|
@ -30,13 +30,14 @@
|
||||
"flame_state": false
|
||||
},
|
||||
"sensors": {
|
||||
"water_temperature": 29.1,
|
||||
"dhw_temperature": 46.3,
|
||||
"water_temperature": 22.7,
|
||||
"domestic_hot_water_setpoint": 60.0,
|
||||
"dhw_temperature": 41.5,
|
||||
"intended_boiler_temperature": 0.0,
|
||||
"modulation_level": 52,
|
||||
"return_temperature": 25.1,
|
||||
"modulation_level": 40,
|
||||
"return_temperature": 23.8,
|
||||
"water_pressure": 1.57,
|
||||
"outdoor_air_temperature": 3.0
|
||||
"outdoor_air_temperature": 28.0
|
||||
},
|
||||
"switches": {
|
||||
"dhw_cm_switch": false
|
||||
|
@ -47,6 +47,10 @@ async def test_anna_as_smt_climate_sensor_entities(
|
||||
assert state
|
||||
assert float(state.state) == 29.1
|
||||
|
||||
state = hass.states.get("sensor.opentherm_dhw_setpoint")
|
||||
assert state
|
||||
assert float(state.state) == 60.0
|
||||
|
||||
state = hass.states.get("sensor.opentherm_dhw_temperature")
|
||||
assert state
|
||||
assert float(state.state) == 46.3
|
||||
|
Loading…
x
Reference in New Issue
Block a user