From 5af41e279a204987c88b18c6562eaa8c9512acec Mon Sep 17 00:00:00 2001 From: Aaron Collins Date: Fri, 26 May 2023 23:31:54 +0000 Subject: [PATCH 1/2] Bump pydaikin to 2.9.1 --- homeassistant/components/daikin/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/daikin/manifest.json b/homeassistant/components/daikin/manifest.json index 6f90b0cf5efa6b..02a8cdbe68fe05 100644 --- a/homeassistant/components/daikin/manifest.json +++ b/homeassistant/components/daikin/manifest.json @@ -7,6 +7,6 @@ "iot_class": "local_polling", "loggers": ["pydaikin"], "quality_scale": "platinum", - "requirements": ["pydaikin==2.9.0"], + "requirements": ["pydaikin==2.9.1"], "zeroconf": ["_dkapi._tcp.local."] } diff --git a/requirements_all.txt b/requirements_all.txt index 93a22f3a149b6d..6152e0167e138d 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1572,7 +1572,7 @@ pycsspeechtts==1.0.8 # pycups==1.9.73 # homeassistant.components.daikin -pydaikin==2.9.0 +pydaikin==2.9.1 # homeassistant.components.danfoss_air pydanfossair==0.1.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index bcedff42ac1bdc..87697d3cfe5993 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1157,7 +1157,7 @@ pycomfoconnect==0.5.1 pycoolmasternet-async==0.1.5 # homeassistant.components.daikin -pydaikin==2.9.0 +pydaikin==2.9.1 # homeassistant.components.deconz pydeconz==111 From 7aae8012efe6374adbcaa0c074431e6067ae9fce Mon Sep 17 00:00:00 2001 From: Aaron Collins Date: Fri, 26 May 2023 23:43:28 +0000 Subject: [PATCH 2/2] Update integration to support pydaikin 2.9.1 --- homeassistant/components/daikin/switch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/daikin/switch.py b/homeassistant/components/daikin/switch.py index 68cd4fdc590d87..1b83f7f7330fa1 100644 --- a/homeassistant/components/daikin/switch.py +++ b/homeassistant/components/daikin/switch.py @@ -42,7 +42,7 @@ async def async_setup_entry( [ DaikinZoneSwitch(daikin_api, zone_id) for zone_id, zone in enumerate(zones) - if zone != ("-", "0") + if zone[0] != ("-", "0") ] ) if daikin_api.device.support_advanced_modes: @@ -90,11 +90,11 @@ async def async_update(self) -> None: async def async_turn_on(self, **kwargs: Any) -> None: """Turn the zone on.""" - await self._api.device.set_zone(self._zone_id, "1") + await self._api.device.set_zone(self._zone_id, "zone_onoff", "1") async def async_turn_off(self, **kwargs: Any) -> None: """Turn the zone off.""" - await self._api.device.set_zone(self._zone_id, "0") + await self._api.device.set_zone(self._zone_id, "zone_onoff", "0") class DaikinStreamerSwitch(SwitchEntity):