Bump plugwise to v0.33.2 (#102671)

This commit is contained in:
Bouwe Westerdijk 2023-10-24 23:11:16 +02:00 committed by GitHub
parent f5a6c88051
commit a5461a9a90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 7 additions and 30 deletions

View File

@ -169,9 +169,7 @@ class PlugwiseClimateEntity(PlugwiseEntity, ClimateEntity):
raise HomeAssistantError("Unsupported hvac_mode") raise HomeAssistantError("Unsupported hvac_mode")
await self.coordinator.api.set_schedule_state( await self.coordinator.api.set_schedule_state(
self.device["location"], self.device["location"], "on" if hvac_mode == HVACMode.AUTO else "off"
self.device["last_used"],
"on" if hvac_mode == HVACMode.AUTO else "off",
) )
@plugwise_command @plugwise_command

View File

@ -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.1"], "requirements": ["plugwise==0.33.2"],
"zeroconf": ["_plugwise._tcp.local."] "zeroconf": ["_plugwise._tcp.local."]
} }

View File

@ -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.1 plugwise==0.33.2
# homeassistant.components.plum_lightpad # homeassistant.components.plum_lightpad
plumlightpad==0.0.11 plumlightpad==0.0.11

View File

@ -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.1 plugwise==0.33.2
# homeassistant.components.plum_lightpad # homeassistant.components.plum_lightpad
plumlightpad==0.0.11 plumlightpad==0.0.11

View File

@ -7,7 +7,6 @@
"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",
"last_used": null,
"location": "06aecb3d00354375924f50c47af36bd2", "location": "06aecb3d00354375924f50c47af36bd2",
"mode": "heat", "mode": "heat",
"model": "Lisa", "model": "Lisa",
@ -103,7 +102,6 @@
"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",
"last_used": null,
"location": "d27aede973b54be484f6842d1b2802ad", "location": "d27aede973b54be484f6842d1b2802ad",
"mode": "heat", "mode": "heat",
"model": "Lisa", "model": "Lisa",
@ -160,7 +158,6 @@
"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",
"last_used": null,
"location": "d58fec52899f4f1c92e4f8fad6d8c48c", "location": "d58fec52899f4f1c92e4f8fad6d8c48c",
"mode": "heat", "mode": "heat",
"model": "Lisa", "model": "Lisa",
@ -271,7 +268,6 @@
"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",
"last_used": null,
"location": "13228dab8ce04617af318a2888b3c548", "location": "13228dab8ce04617af318a2888b3c548",
"mode": "heat", "mode": "heat",
"model": "Jip", "model": "Jip",

View File

@ -117,7 +117,6 @@
"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",
"last_used": "CV Jessie",
"location": "82fa13f017d240daa0d0ea1775420f24", "location": "82fa13f017d240daa0d0ea1775420f24",
"mode": "auto", "mode": "auto",
"model": "Lisa", "model": "Lisa",
@ -257,7 +256,6 @@
"dev_class": "zone_thermostat", "dev_class": "zone_thermostat",
"firmware": "2016-08-02T02:00:00+02:00", "firmware": "2016-08-02T02:00:00+02:00",
"hardware": "255", "hardware": "255",
"last_used": "GF7 Woonkamer",
"location": "c50f167537524366a5af7aa3942feb1e", "location": "c50f167537524366a5af7aa3942feb1e",
"mode": "auto", "mode": "auto",
"model": "Lisa", "model": "Lisa",
@ -341,7 +339,6 @@
"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",
"last_used": "Badkamer Schema",
"location": "12493538af164a409c6a1c79e38afe1c", "location": "12493538af164a409c6a1c79e38afe1c",
"mode": "heat", "mode": "heat",
"model": "Lisa", "model": "Lisa",
@ -381,7 +378,6 @@
"dev_class": "thermostatic_radiator_valve", "dev_class": "thermostatic_radiator_valve",
"firmware": "2019-03-27T01:00:00+01:00", "firmware": "2019-03-27T01:00:00+01:00",
"hardware": "1", "hardware": "1",
"last_used": "Badkamer Schema",
"location": "446ac08dd04d4eff8ac57489757b7314", "location": "446ac08dd04d4eff8ac57489757b7314",
"mode": "heat", "mode": "heat",
"model": "Tom/Floor", "model": "Tom/Floor",
@ -423,7 +419,6 @@
"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",
"last_used": "Badkamer Schema",
"location": "08963fec7c53423ca5680aa4cb502c63", "location": "08963fec7c53423ca5680aa4cb502c63",
"mode": "auto", "mode": "auto",
"model": "Lisa", "model": "Lisa",

View File

@ -62,7 +62,6 @@
"dev_class": "thermostat", "dev_class": "thermostat",
"firmware": "2018-02-08T11:15:53+01:00", "firmware": "2018-02-08T11:15:53+01:00",
"hardware": "6539-1301-5002", "hardware": "6539-1301-5002",
"last_used": "standaard",
"location": "c784ee9fdab44e1395b8dee7d7a497d5", "location": "c784ee9fdab44e1395b8dee7d7a497d5",
"mode": "auto", "mode": "auto",
"model": "ThermoTouch", "model": "ThermoTouch",

View File

@ -54,7 +54,6 @@
"available": true, "available": true,
"available_schedules": ["Weekschema", "Badkamer", "Test"], "available_schedules": ["Weekschema", "Badkamer", "Test"],
"dev_class": "thermostat", "dev_class": "thermostat",
"last_used": "Weekschema",
"location": "f2bf9048bef64cc5b6d5110154e33c81", "location": "f2bf9048bef64cc5b6d5110154e33c81",
"mode": "heat_cool", "mode": "heat_cool",
"model": "ThermoTouch", "model": "ThermoTouch",
@ -108,7 +107,6 @@
"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",
"last_used": "Badkamer",
"location": "f871b8c4d63549319221e294e4f88074", "location": "f871b8c4d63549319221e294e4f88074",
"mode": "auto", "mode": "auto",
"model": "Lisa", "model": "Lisa",

View File

@ -59,7 +59,6 @@
"available": true, "available": true,
"available_schedules": ["Weekschema", "Badkamer", "Test"], "available_schedules": ["Weekschema", "Badkamer", "Test"],
"dev_class": "thermostat", "dev_class": "thermostat",
"last_used": "Weekschema",
"location": "f2bf9048bef64cc5b6d5110154e33c81", "location": "f2bf9048bef64cc5b6d5110154e33c81",
"mode": "heat", "mode": "heat",
"model": "ThermoTouch", "model": "ThermoTouch",
@ -105,7 +104,6 @@
"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",
"last_used": "Badkamer",
"location": "f871b8c4d63549319221e294e4f88074", "location": "f871b8c4d63549319221e294e4f88074",
"mode": "auto", "mode": "auto",
"model": "Lisa", "model": "Lisa",

View File

@ -63,7 +63,6 @@
"dev_class": "thermostat", "dev_class": "thermostat",
"firmware": "2018-02-08T11:15:53+01:00", "firmware": "2018-02-08T11:15:53+01:00",
"hardware": "6539-1301-5002", "hardware": "6539-1301-5002",
"last_used": "standaard",
"location": "c784ee9fdab44e1395b8dee7d7a497d5", "location": "c784ee9fdab44e1395b8dee7d7a497d5",
"mode": "auto", "mode": "auto",
"model": "ThermoTouch", "model": "ThermoTouch",

View File

@ -63,7 +63,6 @@
"dev_class": "thermostat", "dev_class": "thermostat",
"firmware": "2018-02-08T11:15:53+01:00", "firmware": "2018-02-08T11:15:53+01:00",
"hardware": "6539-1301-5002", "hardware": "6539-1301-5002",
"last_used": "standaard",
"location": "c784ee9fdab44e1395b8dee7d7a497d5", "location": "c784ee9fdab44e1395b8dee7d7a497d5",
"mode": "auto", "mode": "auto",
"model": "ThermoTouch", "model": "ThermoTouch",

View File

@ -119,7 +119,6 @@
'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',
'last_used': 'CV Jessie',
'location': '82fa13f017d240daa0d0ea1775420f24', 'location': '82fa13f017d240daa0d0ea1775420f24',
'mode': 'auto', 'mode': 'auto',
'model': 'Lisa', 'model': 'Lisa',
@ -265,7 +264,6 @@
'dev_class': 'zone_thermostat', 'dev_class': 'zone_thermostat',
'firmware': '2016-08-02T02:00:00+02:00', 'firmware': '2016-08-02T02:00:00+02:00',
'hardware': '255', 'hardware': '255',
'last_used': 'GF7 Woonkamer',
'location': 'c50f167537524366a5af7aa3942feb1e', 'location': 'c50f167537524366a5af7aa3942feb1e',
'mode': 'auto', 'mode': 'auto',
'model': 'Lisa', 'model': 'Lisa',
@ -355,7 +353,6 @@
'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',
'last_used': 'Badkamer Schema',
'location': '12493538af164a409c6a1c79e38afe1c', 'location': '12493538af164a409c6a1c79e38afe1c',
'mode': 'heat', 'mode': 'heat',
'model': 'Lisa', 'model': 'Lisa',
@ -401,7 +398,6 @@
'dev_class': 'thermostatic_radiator_valve', 'dev_class': 'thermostatic_radiator_valve',
'firmware': '2019-03-27T01:00:00+01:00', 'firmware': '2019-03-27T01:00:00+01:00',
'hardware': '1', 'hardware': '1',
'last_used': 'Badkamer Schema',
'location': '446ac08dd04d4eff8ac57489757b7314', 'location': '446ac08dd04d4eff8ac57489757b7314',
'mode': 'heat', 'mode': 'heat',
'model': 'Tom/Floor', 'model': 'Tom/Floor',
@ -449,7 +445,6 @@
'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',
'last_used': 'Badkamer Schema',
'location': '08963fec7c53423ca5680aa4cb502c63', 'location': '08963fec7c53423ca5680aa4cb502c63',
'mode': 'auto', 'mode': 'auto',
'model': 'Lisa', 'model': 'Lisa',

View File

@ -158,7 +158,7 @@ async def test_adam_climate_entity_climate_changes(
) )
assert mock_smile_adam.set_schedule_state.call_count == 2 assert mock_smile_adam.set_schedule_state.call_count == 2
mock_smile_adam.set_schedule_state.assert_called_with( mock_smile_adam.set_schedule_state.assert_called_with(
"c50f167537524366a5af7aa3942feb1e", "GF7 Woonkamer", "off" "c50f167537524366a5af7aa3942feb1e", "off"
) )
with pytest.raises(HomeAssistantError): with pytest.raises(HomeAssistantError):
@ -272,7 +272,7 @@ async def test_anna_climate_entity_climate_changes(
) )
assert mock_smile_anna.set_schedule_state.call_count == 1 assert mock_smile_anna.set_schedule_state.call_count == 1
mock_smile_anna.set_schedule_state.assert_called_with( mock_smile_anna.set_schedule_state.assert_called_with(
"c784ee9fdab44e1395b8dee7d7a497d5", "standaard", "on" "c784ee9fdab44e1395b8dee7d7a497d5", "on"
) )
await hass.services.async_call( await hass.services.async_call(
@ -283,7 +283,7 @@ async def test_anna_climate_entity_climate_changes(
) )
assert mock_smile_anna.set_schedule_state.call_count == 2 assert mock_smile_anna.set_schedule_state.call_count == 2
mock_smile_anna.set_schedule_state.assert_called_with( mock_smile_anna.set_schedule_state.assert_called_with(
"c784ee9fdab44e1395b8dee7d7a497d5", "standaard", "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"]["available_schedules"] = ["None"]