Bump plugwise to v0.38.3 (#120152)
This commit is contained in:
parent
f0d5640f5d
commit
f257fcb0d1
17 changed files with 32 additions and 30 deletions
|
@ -155,7 +155,7 @@ class PlugwiseClimateEntity(PlugwiseEntity, ClimateEntity):
|
||||||
if "regulation_modes" in self.gateway_data:
|
if "regulation_modes" in self.gateway_data:
|
||||||
hvac_modes.append(HVACMode.OFF)
|
hvac_modes.append(HVACMode.OFF)
|
||||||
|
|
||||||
if self.device["available_schedules"] != ["None"]:
|
if "available_schedules" in self.device:
|
||||||
hvac_modes.append(HVACMode.AUTO)
|
hvac_modes.append(HVACMode.AUTO)
|
||||||
|
|
||||||
if self.cdr_gateway["cooling_present"]:
|
if self.cdr_gateway["cooling_present"]:
|
||||||
|
|
|
@ -7,6 +7,6 @@
|
||||||
"integration_type": "hub",
|
"integration_type": "hub",
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"loggers": ["plugwise"],
|
"loggers": ["plugwise"],
|
||||||
"requirements": ["plugwise==0.37.4.1"],
|
"requirements": ["plugwise==0.38.3"],
|
||||||
"zeroconf": ["_plugwise._tcp.local."]
|
"zeroconf": ["_plugwise._tcp.local."]
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,8 +35,8 @@ NUMBER_TYPES = (
|
||||||
PlugwiseNumberEntityDescription(
|
PlugwiseNumberEntityDescription(
|
||||||
key="maximum_boiler_temperature",
|
key="maximum_boiler_temperature",
|
||||||
translation_key="maximum_boiler_temperature",
|
translation_key="maximum_boiler_temperature",
|
||||||
command=lambda api, number, dev_id, value: api.set_number_setpoint(
|
command=lambda api, dev_id, number, value: api.set_number(
|
||||||
number, dev_id, value
|
dev_id, number, value
|
||||||
),
|
),
|
||||||
device_class=NumberDeviceClass.TEMPERATURE,
|
device_class=NumberDeviceClass.TEMPERATURE,
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
@ -45,8 +45,8 @@ NUMBER_TYPES = (
|
||||||
PlugwiseNumberEntityDescription(
|
PlugwiseNumberEntityDescription(
|
||||||
key="max_dhw_temperature",
|
key="max_dhw_temperature",
|
||||||
translation_key="max_dhw_temperature",
|
translation_key="max_dhw_temperature",
|
||||||
command=lambda api, number, dev_id, value: api.set_number_setpoint(
|
command=lambda api, dev_id, number, value: api.set_number(
|
||||||
number, dev_id, value
|
dev_id, number, value
|
||||||
),
|
),
|
||||||
device_class=NumberDeviceClass.TEMPERATURE,
|
device_class=NumberDeviceClass.TEMPERATURE,
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
@ -55,8 +55,8 @@ NUMBER_TYPES = (
|
||||||
PlugwiseNumberEntityDescription(
|
PlugwiseNumberEntityDescription(
|
||||||
key="temperature_offset",
|
key="temperature_offset",
|
||||||
translation_key="temperature_offset",
|
translation_key="temperature_offset",
|
||||||
command=lambda api, number, dev_id, value: api.set_temperature_offset(
|
command=lambda api, dev_id, number, value: api.set_temperature_offset(
|
||||||
number, dev_id, value
|
dev_id, value
|
||||||
),
|
),
|
||||||
device_class=NumberDeviceClass.TEMPERATURE,
|
device_class=NumberDeviceClass.TEMPERATURE,
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
@ -124,6 +124,6 @@ class PlugwiseNumberEntity(PlugwiseEntity, NumberEntity):
|
||||||
async def async_set_native_value(self, value: float) -> None:
|
async def async_set_native_value(self, value: float) -> None:
|
||||||
"""Change to the new setpoint value."""
|
"""Change to the new setpoint value."""
|
||||||
await self.entity_description.command(
|
await self.entity_description.command(
|
||||||
self.coordinator.api, self.entity_description.key, self.device_id, value
|
self.coordinator.api, self.device_id, self.entity_description.key, value
|
||||||
)
|
)
|
||||||
await self.coordinator.async_request_refresh()
|
await self.coordinator.async_request_refresh()
|
||||||
|
|
|
@ -1575,7 +1575,7 @@ plexauth==0.0.6
|
||||||
plexwebsocket==0.0.14
|
plexwebsocket==0.0.14
|
||||||
|
|
||||||
# homeassistant.components.plugwise
|
# homeassistant.components.plugwise
|
||||||
plugwise==0.37.4.1
|
plugwise==0.38.3
|
||||||
|
|
||||||
# homeassistant.components.plum_lightpad
|
# homeassistant.components.plum_lightpad
|
||||||
plumlightpad==0.0.11
|
plumlightpad==0.0.11
|
||||||
|
|
|
@ -1258,7 +1258,7 @@ plexauth==0.0.6
|
||||||
plexwebsocket==0.0.14
|
plexwebsocket==0.0.14
|
||||||
|
|
||||||
# homeassistant.components.plugwise
|
# homeassistant.components.plugwise
|
||||||
plugwise==0.37.4.1
|
plugwise==0.38.3
|
||||||
|
|
||||||
# homeassistant.components.plum_lightpad
|
# homeassistant.components.plum_lightpad
|
||||||
plumlightpad==0.0.11
|
plumlightpad==0.0.11
|
||||||
|
|
|
@ -479,6 +479,7 @@
|
||||||
"warning": "Node Plug (with MAC address 000D6F000D13CB01, in room 'n.a.') has been unreachable since 23:03 2020-01-18. Please check the connection and restart the device."
|
"warning": "Node Plug (with MAC address 000D6F000D13CB01, in room 'n.a.') has been unreachable since 23:03 2020-01-18. Please check the connection and restart the device."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"reboot": true,
|
||||||
"smile_name": "Adam"
|
"smile_name": "Adam"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,6 +99,7 @@
|
||||||
"heater_id": "1cbf783bb11e4a7c8a6843dee3a86927",
|
"heater_id": "1cbf783bb11e4a7c8a6843dee3a86927",
|
||||||
"item_count": 66,
|
"item_count": 66,
|
||||||
"notifications": {},
|
"notifications": {},
|
||||||
|
"reboot": true,
|
||||||
"smile_name": "Smile Anna"
|
"smile_name": "Smile Anna"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
"model": "ThermoTouch",
|
"model": "ThermoTouch",
|
||||||
"name": "Anna",
|
"name": "Anna",
|
||||||
"preset_modes": ["no_frost", "asleep", "vacation", "home", "away"],
|
"preset_modes": ["no_frost", "asleep", "vacation", "home", "away"],
|
||||||
"select_schedule": "None",
|
"select_schedule": "off",
|
||||||
"sensors": {
|
"sensors": {
|
||||||
"setpoint": 23.5,
|
"setpoint": 23.5,
|
||||||
"temperature": 25.8
|
"temperature": 25.8
|
||||||
|
@ -165,6 +165,7 @@
|
||||||
"heater_id": "056ee145a816487eaa69243c3280f8bf",
|
"heater_id": "056ee145a816487eaa69243c3280f8bf",
|
||||||
"item_count": 147,
|
"item_count": 147,
|
||||||
"notifications": {},
|
"notifications": {},
|
||||||
|
"reboot": true,
|
||||||
"smile_name": "Adam"
|
"smile_name": "Adam"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
"model": "ThermoTouch",
|
"model": "ThermoTouch",
|
||||||
"name": "Anna",
|
"name": "Anna",
|
||||||
"preset_modes": ["no_frost", "asleep", "vacation", "home", "away"],
|
"preset_modes": ["no_frost", "asleep", "vacation", "home", "away"],
|
||||||
"select_schedule": "None",
|
"select_schedule": "off",
|
||||||
"sensors": {
|
"sensors": {
|
||||||
"setpoint": 20.0,
|
"setpoint": 20.0,
|
||||||
"temperature": 19.1
|
"temperature": 19.1
|
||||||
|
@ -164,6 +164,7 @@
|
||||||
"heater_id": "056ee145a816487eaa69243c3280f8bf",
|
"heater_id": "056ee145a816487eaa69243c3280f8bf",
|
||||||
"item_count": 147,
|
"item_count": 147,
|
||||||
"notifications": {},
|
"notifications": {},
|
||||||
|
"reboot": true,
|
||||||
"smile_name": "Adam"
|
"smile_name": "Adam"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
"1346fbd8498d4dbcab7e18d51b771f3d": {
|
"1346fbd8498d4dbcab7e18d51b771f3d": {
|
||||||
"active_preset": "no_frost",
|
"active_preset": "no_frost",
|
||||||
"available": true,
|
"available": true,
|
||||||
"available_schedules": ["None"],
|
|
||||||
"control_state": "off",
|
"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",
|
||||||
|
@ -13,7 +12,6 @@
|
||||||
"model": "Lisa",
|
"model": "Lisa",
|
||||||
"name": "Slaapkamer",
|
"name": "Slaapkamer",
|
||||||
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
|
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
|
||||||
"select_schedule": "None",
|
|
||||||
"sensors": {
|
"sensors": {
|
||||||
"battery": 92,
|
"battery": 92,
|
||||||
"setpoint": 13.0,
|
"setpoint": 13.0,
|
||||||
|
@ -99,7 +97,6 @@
|
||||||
"6f3e9d7084214c21b9dfa46f6eeb8700": {
|
"6f3e9d7084214c21b9dfa46f6eeb8700": {
|
||||||
"active_preset": "home",
|
"active_preset": "home",
|
||||||
"available": true,
|
"available": true,
|
||||||
"available_schedules": ["None"],
|
|
||||||
"control_state": "off",
|
"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",
|
||||||
|
@ -109,7 +106,6 @@
|
||||||
"model": "Lisa",
|
"model": "Lisa",
|
||||||
"name": "Kinderkamer",
|
"name": "Kinderkamer",
|
||||||
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
|
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
|
||||||
"select_schedule": "None",
|
|
||||||
"sensors": {
|
"sensors": {
|
||||||
"battery": 79,
|
"battery": 79,
|
||||||
"setpoint": 13.0,
|
"setpoint": 13.0,
|
||||||
|
@ -156,7 +152,6 @@
|
||||||
"a6abc6a129ee499c88a4d420cc413b47": {
|
"a6abc6a129ee499c88a4d420cc413b47": {
|
||||||
"active_preset": "home",
|
"active_preset": "home",
|
||||||
"available": true,
|
"available": true,
|
||||||
"available_schedules": ["None"],
|
|
||||||
"control_state": "off",
|
"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",
|
||||||
|
@ -166,7 +161,6 @@
|
||||||
"model": "Lisa",
|
"model": "Lisa",
|
||||||
"name": "Logeerkamer",
|
"name": "Logeerkamer",
|
||||||
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
|
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
|
||||||
"select_schedule": "None",
|
|
||||||
"sensors": {
|
"sensors": {
|
||||||
"battery": 80,
|
"battery": 80,
|
||||||
"setpoint": 13.0,
|
"setpoint": 13.0,
|
||||||
|
@ -269,7 +263,6 @@
|
||||||
"f61f1a2535f54f52ad006a3d18e459ca": {
|
"f61f1a2535f54f52ad006a3d18e459ca": {
|
||||||
"active_preset": "home",
|
"active_preset": "home",
|
||||||
"available": true,
|
"available": true,
|
||||||
"available_schedules": ["None"],
|
|
||||||
"control_state": "off",
|
"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",
|
||||||
|
@ -279,7 +272,6 @@
|
||||||
"model": "Jip",
|
"model": "Jip",
|
||||||
"name": "Woonkamer",
|
"name": "Woonkamer",
|
||||||
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
|
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
|
||||||
"select_schedule": "None",
|
|
||||||
"sensors": {
|
"sensors": {
|
||||||
"battery": 100,
|
"battery": 100,
|
||||||
"humidity": 56.2,
|
"humidity": 56.2,
|
||||||
|
@ -306,8 +298,9 @@
|
||||||
"cooling_present": false,
|
"cooling_present": false,
|
||||||
"gateway_id": "b5c2386c6f6342669e50fe49dd05b188",
|
"gateway_id": "b5c2386c6f6342669e50fe49dd05b188",
|
||||||
"heater_id": "e4684553153b44afbef2200885f379dc",
|
"heater_id": "e4684553153b44afbef2200885f379dc",
|
||||||
"item_count": 221,
|
"item_count": 213,
|
||||||
"notifications": {},
|
"notifications": {},
|
||||||
|
"reboot": true,
|
||||||
"smile_name": "Adam"
|
"smile_name": "Adam"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,6 +99,7 @@
|
||||||
"heater_id": "1cbf783bb11e4a7c8a6843dee3a86927",
|
"heater_id": "1cbf783bb11e4a7c8a6843dee3a86927",
|
||||||
"item_count": 66,
|
"item_count": 66,
|
||||||
"notifications": {},
|
"notifications": {},
|
||||||
|
"reboot": true,
|
||||||
"smile_name": "Smile Anna"
|
"smile_name": "Smile Anna"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,6 +99,7 @@
|
||||||
"heater_id": "1cbf783bb11e4a7c8a6843dee3a86927",
|
"heater_id": "1cbf783bb11e4a7c8a6843dee3a86927",
|
||||||
"item_count": 66,
|
"item_count": 66,
|
||||||
"notifications": {},
|
"notifications": {},
|
||||||
|
"reboot": true,
|
||||||
"smile_name": "Smile Anna"
|
"smile_name": "Smile Anna"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
"gateway_id": "a455b61e52394b2db5081ce025a430f3",
|
"gateway_id": "a455b61e52394b2db5081ce025a430f3",
|
||||||
"item_count": 31,
|
"item_count": 31,
|
||||||
"notifications": {},
|
"notifications": {},
|
||||||
|
"reboot": true,
|
||||||
"smile_name": "Smile P1"
|
"smile_name": "Smile P1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,6 +57,7 @@
|
||||||
"warning": "The Smile P1 is not connected to a smart meter."
|
"warning": "The Smile P1 is not connected to a smart meter."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"reboot": true,
|
||||||
"smile_name": "Smile P1"
|
"smile_name": "Smile P1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -511,6 +511,7 @@
|
||||||
'warning': "Node Plug (with MAC address 000D6F000D13CB01, in room 'n.a.') has been unreachable since 23:03 2020-01-18. Please check the connection and restart the device.",
|
'warning': "Node Plug (with MAC address 000D6F000D13CB01, in room 'n.a.') has been unreachable since 23:03 2020-01-18. Please check the connection and restart the device.",
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
'reboot': True,
|
||||||
'smile_name': 'Adam',
|
'smile_name': 'Adam',
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
|
@ -395,7 +395,7 @@ async def test_anna_climate_entity_climate_changes(
|
||||||
"c784ee9fdab44e1395b8dee7d7a497d5", "off"
|
"c784ee9fdab44e1395b8dee7d7a497d5", "off"
|
||||||
)
|
)
|
||||||
data = mock_smile_anna.async_update.return_value
|
data = mock_smile_anna.async_update.return_value
|
||||||
data.devices["3cb70739631c4d17a86b8b12e8a5161b"]["available_schedules"] = ["None"]
|
data.devices["3cb70739631c4d17a86b8b12e8a5161b"].pop("available_schedules")
|
||||||
with patch(HA_PLUGWISE_SMILE_ASYNC_UPDATE, return_value=data):
|
with patch(HA_PLUGWISE_SMILE_ASYNC_UPDATE, return_value=data):
|
||||||
async_fire_time_changed(hass, utcnow() + timedelta(minutes=1))
|
async_fire_time_changed(hass, utcnow() + timedelta(minutes=1))
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
|
@ -36,9 +36,9 @@ async def test_anna_max_boiler_temp_change(
|
||||||
blocking=True,
|
blocking=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
assert mock_smile_anna.set_number_setpoint.call_count == 1
|
assert mock_smile_anna.set_number.call_count == 1
|
||||||
mock_smile_anna.set_number_setpoint.assert_called_with(
|
mock_smile_anna.set_number.assert_called_with(
|
||||||
"maximum_boiler_temperature", "1cbf783bb11e4a7c8a6843dee3a86927", 65.0
|
"1cbf783bb11e4a7c8a6843dee3a86927", "maximum_boiler_temperature", 65.0
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -65,9 +65,9 @@ async def test_adam_dhw_setpoint_change(
|
||||||
blocking=True,
|
blocking=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
assert mock_smile_adam_2.set_number_setpoint.call_count == 1
|
assert mock_smile_adam_2.set_number.call_count == 1
|
||||||
mock_smile_adam_2.set_number_setpoint.assert_called_with(
|
mock_smile_adam_2.set_number.assert_called_with(
|
||||||
"max_dhw_temperature", "056ee145a816487eaa69243c3280f8bf", 55.0
|
"056ee145a816487eaa69243c3280f8bf", "max_dhw_temperature", 55.0
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -99,5 +99,5 @@ async def test_adam_temperature_offset_change(
|
||||||
|
|
||||||
assert mock_smile_adam.set_temperature_offset.call_count == 1
|
assert mock_smile_adam.set_temperature_offset.call_count == 1
|
||||||
mock_smile_adam.set_temperature_offset.assert_called_with(
|
mock_smile_adam.set_temperature_offset.assert_called_with(
|
||||||
"temperature_offset", "6a3bf693d05e48e0b460c815a4fdd09d", 1.0
|
"6a3bf693d05e48e0b460c815a4fdd09d", 1.0
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue