diff --git a/homeassistant/components/plugwise/climate.py b/homeassistant/components/plugwise/climate.py index e25c2e72e0575c..a33cef0e3a7713 100644 --- a/homeassistant/components/plugwise/climate.py +++ b/homeassistant/components/plugwise/climate.py @@ -169,9 +169,7 @@ async def async_set_hvac_mode(self, hvac_mode: HVACMode) -> None: raise HomeAssistantError("Unsupported hvac_mode") await self.coordinator.api.set_schedule_state( - self.device["location"], - self.device["last_used"], - "on" if hvac_mode == HVACMode.AUTO else "off", + self.device["location"], "on" if hvac_mode == HVACMode.AUTO else "off" ) @plugwise_command diff --git a/homeassistant/components/plugwise/manifest.json b/homeassistant/components/plugwise/manifest.json index b4cc418cc7eca7..1155aaffdf860c 100644 --- a/homeassistant/components/plugwise/manifest.json +++ b/homeassistant/components/plugwise/manifest.json @@ -7,6 +7,6 @@ "integration_type": "hub", "iot_class": "local_polling", "loggers": ["crcmod", "plugwise"], - "requirements": ["plugwise==0.33.1"], + "requirements": ["plugwise==0.33.2"], "zeroconf": ["_plugwise._tcp.local."] } diff --git a/requirements_all.txt b/requirements_all.txt index 77126a6745aaf9..dc2c31eeb02b85 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1455,7 +1455,7 @@ plexauth==0.0.6 plexwebsocket==0.0.14 # homeassistant.components.plugwise -plugwise==0.33.1 +plugwise==0.33.2 # homeassistant.components.plum_lightpad plumlightpad==0.0.11 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index c99ee75b9b2e6d..d96e332cd00d0a 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1115,7 +1115,7 @@ plexauth==0.0.6 plexwebsocket==0.0.14 # homeassistant.components.plugwise -plugwise==0.33.1 +plugwise==0.33.2 # homeassistant.components.plum_lightpad plumlightpad==0.0.11 diff --git a/tests/components/plugwise/fixtures/adam_jip/all_data.json b/tests/components/plugwise/fixtures/adam_jip/all_data.json index ba00e3928d70bd..bc1bc9c8c0cf5d 100644 --- a/tests/components/plugwise/fixtures/adam_jip/all_data.json +++ b/tests/components/plugwise/fixtures/adam_jip/all_data.json @@ -7,7 +7,6 @@ "dev_class": "zone_thermostat", "firmware": "2016-10-27T02:00:00+02:00", "hardware": "255", - "last_used": null, "location": "06aecb3d00354375924f50c47af36bd2", "mode": "heat", "model": "Lisa", @@ -103,7 +102,6 @@ "dev_class": "zone_thermostat", "firmware": "2016-10-27T02:00:00+02:00", "hardware": "255", - "last_used": null, "location": "d27aede973b54be484f6842d1b2802ad", "mode": "heat", "model": "Lisa", @@ -160,7 +158,6 @@ "dev_class": "zone_thermostat", "firmware": "2016-10-27T02:00:00+02:00", "hardware": "255", - "last_used": null, "location": "d58fec52899f4f1c92e4f8fad6d8c48c", "mode": "heat", "model": "Lisa", @@ -271,7 +268,6 @@ "dev_class": "zone_thermometer", "firmware": "2020-09-01T02:00:00+02:00", "hardware": "1", - "last_used": null, "location": "13228dab8ce04617af318a2888b3c548", "mode": "heat", "model": "Jip", diff --git a/tests/components/plugwise/fixtures/adam_multiple_devices_per_zone/all_data.json b/tests/components/plugwise/fixtures/adam_multiple_devices_per_zone/all_data.json index 0cc28731ff4a8a..6e6da1aa272d3a 100644 --- a/tests/components/plugwise/fixtures/adam_multiple_devices_per_zone/all_data.json +++ b/tests/components/plugwise/fixtures/adam_multiple_devices_per_zone/all_data.json @@ -117,7 +117,6 @@ "dev_class": "zone_thermostat", "firmware": "2016-10-27T02:00:00+02:00", "hardware": "255", - "last_used": "CV Jessie", "location": "82fa13f017d240daa0d0ea1775420f24", "mode": "auto", "model": "Lisa", @@ -257,7 +256,6 @@ "dev_class": "zone_thermostat", "firmware": "2016-08-02T02:00:00+02:00", "hardware": "255", - "last_used": "GF7 Woonkamer", "location": "c50f167537524366a5af7aa3942feb1e", "mode": "auto", "model": "Lisa", @@ -341,7 +339,6 @@ "dev_class": "zone_thermostat", "firmware": "2016-10-27T02:00:00+02:00", "hardware": "255", - "last_used": "Badkamer Schema", "location": "12493538af164a409c6a1c79e38afe1c", "mode": "heat", "model": "Lisa", @@ -381,7 +378,6 @@ "dev_class": "thermostatic_radiator_valve", "firmware": "2019-03-27T01:00:00+01:00", "hardware": "1", - "last_used": "Badkamer Schema", "location": "446ac08dd04d4eff8ac57489757b7314", "mode": "heat", "model": "Tom/Floor", @@ -423,7 +419,6 @@ "dev_class": "zone_thermostat", "firmware": "2016-10-27T02:00:00+02:00", "hardware": "255", - "last_used": "Badkamer Schema", "location": "08963fec7c53423ca5680aa4cb502c63", "mode": "auto", "model": "Lisa", diff --git a/tests/components/plugwise/fixtures/anna_heatpump_heating/all_data.json b/tests/components/plugwise/fixtures/anna_heatpump_heating/all_data.json index cdddfdb3439c03..e7e13e17357d5f 100644 --- a/tests/components/plugwise/fixtures/anna_heatpump_heating/all_data.json +++ b/tests/components/plugwise/fixtures/anna_heatpump_heating/all_data.json @@ -62,7 +62,6 @@ "dev_class": "thermostat", "firmware": "2018-02-08T11:15:53+01:00", "hardware": "6539-1301-5002", - "last_used": "standaard", "location": "c784ee9fdab44e1395b8dee7d7a497d5", "mode": "auto", "model": "ThermoTouch", diff --git a/tests/components/plugwise/fixtures/m_adam_cooling/all_data.json b/tests/components/plugwise/fixtures/m_adam_cooling/all_data.json index af8c012cae36f4..126852e945d88d 100644 --- a/tests/components/plugwise/fixtures/m_adam_cooling/all_data.json +++ b/tests/components/plugwise/fixtures/m_adam_cooling/all_data.json @@ -54,7 +54,6 @@ "available": true, "available_schedules": ["Weekschema", "Badkamer", "Test"], "dev_class": "thermostat", - "last_used": "Weekschema", "location": "f2bf9048bef64cc5b6d5110154e33c81", "mode": "heat_cool", "model": "ThermoTouch", @@ -108,7 +107,6 @@ "dev_class": "zone_thermostat", "firmware": "2016-10-10T02:00:00+02:00", "hardware": "255", - "last_used": "Badkamer", "location": "f871b8c4d63549319221e294e4f88074", "mode": "auto", "model": "Lisa", diff --git a/tests/components/plugwise/fixtures/m_adam_heating/all_data.json b/tests/components/plugwise/fixtures/m_adam_heating/all_data.json index efefa95d45c8fb..e8a72c9b3fbfd9 100644 --- a/tests/components/plugwise/fixtures/m_adam_heating/all_data.json +++ b/tests/components/plugwise/fixtures/m_adam_heating/all_data.json @@ -59,7 +59,6 @@ "available": true, "available_schedules": ["Weekschema", "Badkamer", "Test"], "dev_class": "thermostat", - "last_used": "Weekschema", "location": "f2bf9048bef64cc5b6d5110154e33c81", "mode": "heat", "model": "ThermoTouch", @@ -105,7 +104,6 @@ "dev_class": "zone_thermostat", "firmware": "2016-10-10T02:00:00+02:00", "hardware": "255", - "last_used": "Badkamer", "location": "f871b8c4d63549319221e294e4f88074", "mode": "auto", "model": "Lisa", diff --git a/tests/components/plugwise/fixtures/m_anna_heatpump_cooling/all_data.json b/tests/components/plugwise/fixtures/m_anna_heatpump_cooling/all_data.json index f98f253e9389f2..40364e620c3f7c 100644 --- a/tests/components/plugwise/fixtures/m_anna_heatpump_cooling/all_data.json +++ b/tests/components/plugwise/fixtures/m_anna_heatpump_cooling/all_data.json @@ -63,7 +63,6 @@ "dev_class": "thermostat", "firmware": "2018-02-08T11:15:53+01:00", "hardware": "6539-1301-5002", - "last_used": "standaard", "location": "c784ee9fdab44e1395b8dee7d7a497d5", "mode": "auto", "model": "ThermoTouch", diff --git a/tests/components/plugwise/fixtures/m_anna_heatpump_idle/all_data.json b/tests/components/plugwise/fixtures/m_anna_heatpump_idle/all_data.json index 56d26f67acb423..3a84a59deea7a0 100644 --- a/tests/components/plugwise/fixtures/m_anna_heatpump_idle/all_data.json +++ b/tests/components/plugwise/fixtures/m_anna_heatpump_idle/all_data.json @@ -63,7 +63,6 @@ "dev_class": "thermostat", "firmware": "2018-02-08T11:15:53+01:00", "hardware": "6539-1301-5002", - "last_used": "standaard", "location": "c784ee9fdab44e1395b8dee7d7a497d5", "mode": "auto", "model": "ThermoTouch", diff --git a/tests/components/plugwise/snapshots/test_diagnostics.ambr b/tests/components/plugwise/snapshots/test_diagnostics.ambr index da6e896442164b..597b9710ec5e1a 100644 --- a/tests/components/plugwise/snapshots/test_diagnostics.ambr +++ b/tests/components/plugwise/snapshots/test_diagnostics.ambr @@ -119,7 +119,6 @@ 'dev_class': 'zone_thermostat', 'firmware': '2016-10-27T02:00:00+02:00', 'hardware': '255', - 'last_used': 'CV Jessie', 'location': '82fa13f017d240daa0d0ea1775420f24', 'mode': 'auto', 'model': 'Lisa', @@ -265,7 +264,6 @@ 'dev_class': 'zone_thermostat', 'firmware': '2016-08-02T02:00:00+02:00', 'hardware': '255', - 'last_used': 'GF7 Woonkamer', 'location': 'c50f167537524366a5af7aa3942feb1e', 'mode': 'auto', 'model': 'Lisa', @@ -355,7 +353,6 @@ 'dev_class': 'zone_thermostat', 'firmware': '2016-10-27T02:00:00+02:00', 'hardware': '255', - 'last_used': 'Badkamer Schema', 'location': '12493538af164a409c6a1c79e38afe1c', 'mode': 'heat', 'model': 'Lisa', @@ -401,7 +398,6 @@ 'dev_class': 'thermostatic_radiator_valve', 'firmware': '2019-03-27T01:00:00+01:00', 'hardware': '1', - 'last_used': 'Badkamer Schema', 'location': '446ac08dd04d4eff8ac57489757b7314', 'mode': 'heat', 'model': 'Tom/Floor', @@ -449,7 +445,6 @@ 'dev_class': 'zone_thermostat', 'firmware': '2016-10-27T02:00:00+02:00', 'hardware': '255', - 'last_used': 'Badkamer Schema', 'location': '08963fec7c53423ca5680aa4cb502c63', 'mode': 'auto', 'model': 'Lisa', diff --git a/tests/components/plugwise/test_climate.py b/tests/components/plugwise/test_climate.py index 11425cf79da352..d8ce2785f2a5e1 100644 --- a/tests/components/plugwise/test_climate.py +++ b/tests/components/plugwise/test_climate.py @@ -158,7 +158,7 @@ async def test_adam_climate_entity_climate_changes( ) assert mock_smile_adam.set_schedule_state.call_count == 2 mock_smile_adam.set_schedule_state.assert_called_with( - "c50f167537524366a5af7aa3942feb1e", "GF7 Woonkamer", "off" + "c50f167537524366a5af7aa3942feb1e", "off" ) 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 mock_smile_anna.set_schedule_state.assert_called_with( - "c784ee9fdab44e1395b8dee7d7a497d5", "standaard", "on" + "c784ee9fdab44e1395b8dee7d7a497d5", "on" ) 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 mock_smile_anna.set_schedule_state.assert_called_with( - "c784ee9fdab44e1395b8dee7d7a497d5", "standaard", "off" + "c784ee9fdab44e1395b8dee7d7a497d5", "off" ) data = mock_smile_anna.async_update.return_value data.devices["3cb70739631c4d17a86b8b12e8a5161b"]["available_schedules"] = ["None"]