Bump plugwise to v0.33.1 (#102052)

This commit is contained in:
Bouwe Westerdijk 2023-10-23 15:47:12 +02:00 committed by GitHub
parent 40ccae3d07
commit c7d2499a52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 5 additions and 25 deletions

View File

@ -120,16 +120,6 @@ class PlugwiseClimateEntity(PlugwiseEntity, ClimateEntity):
@property
def hvac_action(self) -> HVACAction | None:
"""Return the current running hvac operation if supported."""
# When control_state is present, prefer this data
if (control_state := self.device.get("control_state")) == "cooling":
return HVACAction.COOLING
# Support preheating state as heating,
# until preheating is added as a separate state
if control_state in ["heating", "preheating"]:
return HVACAction.HEATING
if control_state == "off":
return HVACAction.IDLE
heater: str | None = self.coordinator.data.gateway["heater_id"]
if heater:
heater_data = self.coordinator.data.devices[heater]

View File

@ -7,6 +7,6 @@
"integration_type": "hub",
"iot_class": "local_polling",
"loggers": ["crcmod", "plugwise"],
"requirements": ["plugwise==0.33.0"],
"requirements": ["plugwise==0.33.1"],
"zeroconf": ["_plugwise._tcp.local."]
}

View File

@ -1455,7 +1455,7 @@ plexauth==0.0.6
plexwebsocket==0.0.14
# homeassistant.components.plugwise
plugwise==0.33.0
plugwise==0.33.1
# homeassistant.components.plum_lightpad
plumlightpad==0.0.11

View File

@ -1115,7 +1115,7 @@ plexauth==0.0.6
plexwebsocket==0.0.14
# homeassistant.components.plugwise
plugwise==0.33.0
plugwise==0.33.1
# homeassistant.components.plum_lightpad
plumlightpad==0.0.11

View File

@ -4,7 +4,6 @@
"active_preset": "no_frost",
"available": true,
"available_schedules": ["None"],
"control_state": "off",
"dev_class": "zone_thermostat",
"firmware": "2016-10-27T02:00:00+02:00",
"hardware": "255",
@ -101,7 +100,6 @@
"active_preset": "home",
"available": true,
"available_schedules": ["None"],
"control_state": "off",
"dev_class": "zone_thermostat",
"firmware": "2016-10-27T02:00:00+02:00",
"hardware": "255",
@ -159,7 +157,6 @@
"active_preset": "home",
"available": true,
"available_schedules": ["None"],
"control_state": "off",
"dev_class": "zone_thermostat",
"firmware": "2016-10-27T02:00:00+02:00",
"hardware": "255",
@ -271,7 +268,6 @@
"active_preset": "home",
"available": true,
"available_schedules": ["None"],
"control_state": "off",
"dev_class": "zone_thermometer",
"firmware": "2020-09-01T02:00:00+02:00",
"hardware": "1",

View File

@ -53,7 +53,6 @@
"active_preset": "asleep",
"available": true,
"available_schedules": ["Weekschema", "Badkamer", "Test"],
"control_state": "cooling",
"dev_class": "thermostat",
"last_used": "Weekschema",
"location": "f2bf9048bef64cc5b6d5110154e33c81",
@ -88,7 +87,6 @@
"mac_address": "012345670001",
"model": "Gateway",
"name": "Adam",
"regulation_mode": "cooling",
"regulation_modes": [
"heating",
"off",
@ -96,7 +94,7 @@
"bleeding_hot",
"cooling"
],
"select_regulation_mode": "heating",
"select_regulation_mode": "cooling",
"sensors": {
"outdoor_temperature": 29.65
},
@ -107,7 +105,6 @@
"active_preset": "home",
"available": true,
"available_schedules": ["Weekschema", "Badkamer", "Test"],
"control_state": "off",
"dev_class": "zone_thermostat",
"firmware": "2016-10-10T02:00:00+02:00",
"hardware": "255",

View File

@ -58,7 +58,6 @@
"active_preset": "asleep",
"available": true,
"available_schedules": ["Weekschema", "Badkamer", "Test"],
"control_state": "heating",
"dev_class": "thermostat",
"last_used": "Weekschema",
"location": "f2bf9048bef64cc5b6d5110154e33c81",
@ -91,7 +90,6 @@
"mac_address": "012345670001",
"model": "Gateway",
"name": "Adam",
"regulation_mode": "heating",
"regulation_modes": ["heating", "off", "bleeding_cold", "bleeding_hot"],
"select_regulation_mode": "heating",
"sensors": {
@ -104,7 +102,6 @@
"active_preset": "home",
"available": true,
"available_schedules": ["Weekschema", "Badkamer", "Test"],
"control_state": "off",
"dev_class": "zone_thermostat",
"firmware": "2016-10-10T02:00:00+02:00",
"hardware": "255",

View File

@ -64,7 +64,7 @@ async def test_adam_2_climate_entity_attributes(
state = hass.states.get("climate.lisa_badkamer")
assert state
assert state.state == HVACMode.AUTO
assert state.attributes["hvac_action"] == "idle"
assert state.attributes["hvac_action"] == "heating"
assert state.attributes["hvac_modes"] == [HVACMode.HEAT, HVACMode.AUTO]