From eb90a96bec74d622f704d56e8ad6903a07a5d8d6 Mon Sep 17 00:00:00 2001 From: Philipp Date: Thu, 22 Feb 2024 21:39:54 +0100 Subject: [PATCH] removed duplicate preset on vrc700 --- custom_components/mypyllant/climate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/mypyllant/climate.py b/custom_components/mypyllant/climate.py index e7dd3fe..897052d 100644 --- a/custom_components/mypyllant/climate.py +++ b/custom_components/mypyllant/climate.py @@ -557,7 +557,7 @@ async def async_set_temperature(self, **kwargs: Any) -> None: @property def preset_modes(self) -> list[str]: if self.zone.control_identifier.is_vrc700: - return [k for k in ZONE_PRESET_MAP_VRC700.values()] + return list({v for v in ZONE_PRESET_MAP_VRC700.values()}) else: return [k for k in ZONE_PRESET_MAP.keys()]