diff --git a/CHANGELOG.md b/CHANGELOG.md index e8bec2c22..e120c957b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +# v0.18.1: Smile Adam: don't show vacation-preset, as not shown in the Plugwise App or on the local Adam-website + # v0.18.0: Smile: add generation of cooling-schedules - Further improve typing hints: e.g. all collected measurements are now typed via TypedDicts - Implement correct generation of schedules for both heating and cooling (needs testing) diff --git a/plugwise/__init__.py b/plugwise/__init__.py index 47a5788ac..ebea7b0df 100644 --- a/plugwise/__init__.py +++ b/plugwise/__init__.py @@ -1,6 +1,6 @@ """Plugwise module.""" -__version__ = "0.18.0" +__version__ = "0.18.1" from plugwise.smile import Smile from plugwise.stick import Stick diff --git a/plugwise/smile.py b/plugwise/smile.py index ad9977a03..37a548abc 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -144,7 +144,12 @@ def _device_data_climate( device_data["preset_modes"] = None device_data["active_preset"] = None if presets := self._presets(loc_id): - device_data["preset_modes"] = list(presets) + presets_list = list(presets) + # Adam does not show vacation preset anymore, issue #185 + if self.smile_name == "Adam": + presets_list.remove("vacation") + device_data["preset_modes"] = presets_list + device_data["active_preset"] = self._preset(loc_id) # Schedule diff --git a/tests/test_smile.py b/tests/test_smile.py index cad838749..255799999 100644 --- a/tests/test_smile.py +++ b/tests/test_smile.py @@ -1377,7 +1377,7 @@ async def test_connect_adam_plus_anna(self): "lower_bound": 1.0, "upper_bound": 35.0, "resolution": 0.01, - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": ["home", "asleep", "away", "no_frost"], "active_preset": "home", "available_schedules": ["Weekschema"], "selected_schedule": "Weekschema", @@ -1485,7 +1485,7 @@ async def test_connect_adam_plus_anna_new(self): "lower_bound": 1.0, "upper_bound": 35.0, "resolution": 0.01, - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": ["home", "asleep", "away", "no_frost"], "active_preset": "asleep", "available_schedules": ["Weekschema", "Badkamer", "Test"], "selected_schedule": "Weekschema", @@ -1575,7 +1575,7 @@ async def test_connect_adam_plus_anna_new(self): "lower_bound": 0.0, "upper_bound": 99.9, "resolution": 0.01, - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": ["home", "asleep", "away", "no_frost"], "active_preset": "home", "available_schedules": ["Weekschema", "Badkamer", "Test"], "selected_schedule": "Badkamer", @@ -1689,7 +1689,7 @@ async def test_connect_adam_zone_per_device(self): "lower_bound": 0.0, "upper_bound": 99.9, "resolution": 0.01, - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": ["home", "asleep", "away", "no_frost"], "active_preset": "away", "available_schedules": [ "CV Roan", @@ -1755,7 +1755,7 @@ async def test_connect_adam_zone_per_device(self): "lower_bound": 0.0, "upper_bound": 99.9, "resolution": 0.01, - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": ["home", "asleep", "away", "no_frost"], "active_preset": "home", "available_schedules": [ "CV Roan", @@ -1925,7 +1925,7 @@ async def test_connect_adam_zone_per_device(self): "lower_bound": 0.0, "upper_bound": 99.9, "resolution": 0.01, - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": ["home", "asleep", "away", "no_frost"], "active_preset": "asleep", "available_schedules": [ "CV Roan", @@ -1972,7 +1972,7 @@ async def test_connect_adam_zone_per_device(self): "lower_bound": 0.0, "upper_bound": 99.9, "resolution": 0.01, - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": ["home", "asleep", "away", "no_frost"], "active_preset": "away", "available_schedules": [ "CV Roan", @@ -2015,7 +2015,7 @@ async def test_connect_adam_zone_per_device(self): "lower_bound": 0.0, "upper_bound": 100.0, "resolution": 0.01, - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": ["home", "asleep", "away", "no_frost"], "active_preset": "no_frost", "available_schedules": [ "CV Roan", @@ -2109,7 +2109,7 @@ async def test_connect_adam_multiple_devices_per_zone(self): "lower_bound": 0.0, "upper_bound": 99.9, "resolution": 0.01, - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": ["home", "asleep", "away", "no_frost"], "active_preset": "away", "available_schedules": [ "CV Roan", @@ -2175,7 +2175,7 @@ async def test_connect_adam_multiple_devices_per_zone(self): "lower_bound": 0.0, "upper_bound": 99.9, "resolution": 0.01, - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": ["home", "asleep", "away", "no_frost"], "active_preset": "home", "available_schedules": [ "CV Roan", @@ -2345,7 +2345,7 @@ async def test_connect_adam_multiple_devices_per_zone(self): "lower_bound": 0.0, "upper_bound": 99.9, "resolution": 0.01, - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": ["home", "asleep", "away", "no_frost"], "active_preset": "asleep", "available_schedules": [ "CV Roan", @@ -2392,7 +2392,7 @@ async def test_connect_adam_multiple_devices_per_zone(self): "lower_bound": 0.0, "upper_bound": 99.9, "resolution": 0.01, - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": ["home", "asleep", "away", "no_frost"], "active_preset": "away", "available_schedules": [ "CV Roan", @@ -2435,7 +2435,7 @@ async def test_connect_adam_multiple_devices_per_zone(self): "lower_bound": 0.0, "upper_bound": 100.0, "resolution": 0.01, - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": ["home", "asleep", "away", "no_frost"], "active_preset": "no_frost", "available_schedules": [ "CV Roan", @@ -2540,7 +2540,7 @@ async def test_adam_plus_jip(self): "lower_bound": 0.0, "upper_bound": 99.9, "resolution": 0.01, - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": ["home", "asleep", "away", "no_frost"], "active_preset": "home", "available_schedules": ["None"], "selected_schedule": "None", @@ -2562,7 +2562,7 @@ async def test_adam_plus_jip(self): "lower_bound": 0.0, "upper_bound": 99.9, "resolution": 0.01, - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": ["home", "asleep", "away", "no_frost"], "active_preset": "no_frost", "available_schedules": ["None"], "selected_schedule": "None", @@ -2603,7 +2603,7 @@ async def test_adam_plus_jip(self): "lower_bound": 0.0, "upper_bound": 99.9, "resolution": 0.01, - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": ["home", "asleep", "away", "no_frost"], "active_preset": "home", "available_schedules": ["None"], "selected_schedule": "None", @@ -2625,7 +2625,7 @@ async def test_adam_plus_jip(self): "lower_bound": 4.0, "upper_bound": 30.0, "resolution": 0.01, - "preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], + "preset_modes": ["home", "asleep", "away", "no_frost"], "active_preset": "home", "available_schedules": ["None"], "selected_schedule": "None",