mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Bump plugwise to v0.33.1 (#102052)
This commit is contained in:
parent
40ccae3d07
commit
c7d2499a52
@ -120,16 +120,6 @@ class PlugwiseClimateEntity(PlugwiseEntity, ClimateEntity):
|
|||||||
@property
|
@property
|
||||||
def hvac_action(self) -> HVACAction | None:
|
def hvac_action(self) -> HVACAction | None:
|
||||||
"""Return the current running hvac operation if supported."""
|
"""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"]
|
heater: str | None = self.coordinator.data.gateway["heater_id"]
|
||||||
if heater:
|
if heater:
|
||||||
heater_data = self.coordinator.data.devices[heater]
|
heater_data = self.coordinator.data.devices[heater]
|
||||||
|
@ -7,6 +7,6 @@
|
|||||||
"integration_type": "hub",
|
"integration_type": "hub",
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"loggers": ["crcmod", "plugwise"],
|
"loggers": ["crcmod", "plugwise"],
|
||||||
"requirements": ["plugwise==0.33.0"],
|
"requirements": ["plugwise==0.33.1"],
|
||||||
"zeroconf": ["_plugwise._tcp.local."]
|
"zeroconf": ["_plugwise._tcp.local."]
|
||||||
}
|
}
|
||||||
|
@ -1455,7 +1455,7 @@ plexauth==0.0.6
|
|||||||
plexwebsocket==0.0.14
|
plexwebsocket==0.0.14
|
||||||
|
|
||||||
# homeassistant.components.plugwise
|
# homeassistant.components.plugwise
|
||||||
plugwise==0.33.0
|
plugwise==0.33.1
|
||||||
|
|
||||||
# homeassistant.components.plum_lightpad
|
# homeassistant.components.plum_lightpad
|
||||||
plumlightpad==0.0.11
|
plumlightpad==0.0.11
|
||||||
|
@ -1115,7 +1115,7 @@ plexauth==0.0.6
|
|||||||
plexwebsocket==0.0.14
|
plexwebsocket==0.0.14
|
||||||
|
|
||||||
# homeassistant.components.plugwise
|
# homeassistant.components.plugwise
|
||||||
plugwise==0.33.0
|
plugwise==0.33.1
|
||||||
|
|
||||||
# homeassistant.components.plum_lightpad
|
# homeassistant.components.plum_lightpad
|
||||||
plumlightpad==0.0.11
|
plumlightpad==0.0.11
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
"active_preset": "no_frost",
|
"active_preset": "no_frost",
|
||||||
"available": true,
|
"available": true,
|
||||||
"available_schedules": ["None"],
|
"available_schedules": ["None"],
|
||||||
"control_state": "off",
|
|
||||||
"dev_class": "zone_thermostat",
|
"dev_class": "zone_thermostat",
|
||||||
"firmware": "2016-10-27T02:00:00+02:00",
|
"firmware": "2016-10-27T02:00:00+02:00",
|
||||||
"hardware": "255",
|
"hardware": "255",
|
||||||
@ -101,7 +100,6 @@
|
|||||||
"active_preset": "home",
|
"active_preset": "home",
|
||||||
"available": true,
|
"available": true,
|
||||||
"available_schedules": ["None"],
|
"available_schedules": ["None"],
|
||||||
"control_state": "off",
|
|
||||||
"dev_class": "zone_thermostat",
|
"dev_class": "zone_thermostat",
|
||||||
"firmware": "2016-10-27T02:00:00+02:00",
|
"firmware": "2016-10-27T02:00:00+02:00",
|
||||||
"hardware": "255",
|
"hardware": "255",
|
||||||
@ -159,7 +157,6 @@
|
|||||||
"active_preset": "home",
|
"active_preset": "home",
|
||||||
"available": true,
|
"available": true,
|
||||||
"available_schedules": ["None"],
|
"available_schedules": ["None"],
|
||||||
"control_state": "off",
|
|
||||||
"dev_class": "zone_thermostat",
|
"dev_class": "zone_thermostat",
|
||||||
"firmware": "2016-10-27T02:00:00+02:00",
|
"firmware": "2016-10-27T02:00:00+02:00",
|
||||||
"hardware": "255",
|
"hardware": "255",
|
||||||
@ -271,7 +268,6 @@
|
|||||||
"active_preset": "home",
|
"active_preset": "home",
|
||||||
"available": true,
|
"available": true,
|
||||||
"available_schedules": ["None"],
|
"available_schedules": ["None"],
|
||||||
"control_state": "off",
|
|
||||||
"dev_class": "zone_thermometer",
|
"dev_class": "zone_thermometer",
|
||||||
"firmware": "2020-09-01T02:00:00+02:00",
|
"firmware": "2020-09-01T02:00:00+02:00",
|
||||||
"hardware": "1",
|
"hardware": "1",
|
||||||
|
@ -53,7 +53,6 @@
|
|||||||
"active_preset": "asleep",
|
"active_preset": "asleep",
|
||||||
"available": true,
|
"available": true,
|
||||||
"available_schedules": ["Weekschema", "Badkamer", "Test"],
|
"available_schedules": ["Weekschema", "Badkamer", "Test"],
|
||||||
"control_state": "cooling",
|
|
||||||
"dev_class": "thermostat",
|
"dev_class": "thermostat",
|
||||||
"last_used": "Weekschema",
|
"last_used": "Weekschema",
|
||||||
"location": "f2bf9048bef64cc5b6d5110154e33c81",
|
"location": "f2bf9048bef64cc5b6d5110154e33c81",
|
||||||
@ -88,7 +87,6 @@
|
|||||||
"mac_address": "012345670001",
|
"mac_address": "012345670001",
|
||||||
"model": "Gateway",
|
"model": "Gateway",
|
||||||
"name": "Adam",
|
"name": "Adam",
|
||||||
"regulation_mode": "cooling",
|
|
||||||
"regulation_modes": [
|
"regulation_modes": [
|
||||||
"heating",
|
"heating",
|
||||||
"off",
|
"off",
|
||||||
@ -96,7 +94,7 @@
|
|||||||
"bleeding_hot",
|
"bleeding_hot",
|
||||||
"cooling"
|
"cooling"
|
||||||
],
|
],
|
||||||
"select_regulation_mode": "heating",
|
"select_regulation_mode": "cooling",
|
||||||
"sensors": {
|
"sensors": {
|
||||||
"outdoor_temperature": 29.65
|
"outdoor_temperature": 29.65
|
||||||
},
|
},
|
||||||
@ -107,7 +105,6 @@
|
|||||||
"active_preset": "home",
|
"active_preset": "home",
|
||||||
"available": true,
|
"available": true,
|
||||||
"available_schedules": ["Weekschema", "Badkamer", "Test"],
|
"available_schedules": ["Weekschema", "Badkamer", "Test"],
|
||||||
"control_state": "off",
|
|
||||||
"dev_class": "zone_thermostat",
|
"dev_class": "zone_thermostat",
|
||||||
"firmware": "2016-10-10T02:00:00+02:00",
|
"firmware": "2016-10-10T02:00:00+02:00",
|
||||||
"hardware": "255",
|
"hardware": "255",
|
||||||
|
@ -58,7 +58,6 @@
|
|||||||
"active_preset": "asleep",
|
"active_preset": "asleep",
|
||||||
"available": true,
|
"available": true,
|
||||||
"available_schedules": ["Weekschema", "Badkamer", "Test"],
|
"available_schedules": ["Weekschema", "Badkamer", "Test"],
|
||||||
"control_state": "heating",
|
|
||||||
"dev_class": "thermostat",
|
"dev_class": "thermostat",
|
||||||
"last_used": "Weekschema",
|
"last_used": "Weekschema",
|
||||||
"location": "f2bf9048bef64cc5b6d5110154e33c81",
|
"location": "f2bf9048bef64cc5b6d5110154e33c81",
|
||||||
@ -91,7 +90,6 @@
|
|||||||
"mac_address": "012345670001",
|
"mac_address": "012345670001",
|
||||||
"model": "Gateway",
|
"model": "Gateway",
|
||||||
"name": "Adam",
|
"name": "Adam",
|
||||||
"regulation_mode": "heating",
|
|
||||||
"regulation_modes": ["heating", "off", "bleeding_cold", "bleeding_hot"],
|
"regulation_modes": ["heating", "off", "bleeding_cold", "bleeding_hot"],
|
||||||
"select_regulation_mode": "heating",
|
"select_regulation_mode": "heating",
|
||||||
"sensors": {
|
"sensors": {
|
||||||
@ -104,7 +102,6 @@
|
|||||||
"active_preset": "home",
|
"active_preset": "home",
|
||||||
"available": true,
|
"available": true,
|
||||||
"available_schedules": ["Weekschema", "Badkamer", "Test"],
|
"available_schedules": ["Weekschema", "Badkamer", "Test"],
|
||||||
"control_state": "off",
|
|
||||||
"dev_class": "zone_thermostat",
|
"dev_class": "zone_thermostat",
|
||||||
"firmware": "2016-10-10T02:00:00+02:00",
|
"firmware": "2016-10-10T02:00:00+02:00",
|
||||||
"hardware": "255",
|
"hardware": "255",
|
||||||
|
@ -64,7 +64,7 @@ async def test_adam_2_climate_entity_attributes(
|
|||||||
state = hass.states.get("climate.lisa_badkamer")
|
state = hass.states.get("climate.lisa_badkamer")
|
||||||
assert state
|
assert state
|
||||||
assert state.state == HVACMode.AUTO
|
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]
|
assert state.attributes["hvac_modes"] == [HVACMode.HEAT, HVACMode.AUTO]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user