diff --git a/homeassistant/components/nexia/climate.py b/homeassistant/components/nexia/climate.py index 81e6158a872..66c325d2fc3 100644 --- a/homeassistant/components/nexia/climate.py +++ b/homeassistant/components/nexia/climate.py @@ -206,7 +206,7 @@ class NexiaZone(NexiaThermostatZoneEntity, ClimateEntity): """Set the hvac run mode.""" if run_mode is not None: if run_mode == HOLD_PERMANENT: - await self._zone.call_permanent_hold() + await self._zone.set_permanent_hold() else: await self._zone.call_return_to_schedule() if hvac_mode is not None: @@ -399,7 +399,7 @@ class NexiaZone(NexiaThermostatZoneEntity, ClimateEntity): await self._zone.call_return_to_schedule() await self._zone.set_mode(mode=OPERATION_MODE_AUTO) else: - await self._zone.call_permanent_hold() + await self._zone.set_permanent_hold() await self._zone.set_mode(mode=HA_TO_NEXIA_HVAC_MODE_MAP[hvac_mode]) self._signal_zone_update() diff --git a/homeassistant/components/nexia/manifest.json b/homeassistant/components/nexia/manifest.json index e381dc95897..77280b1f503 100644 --- a/homeassistant/components/nexia/manifest.json +++ b/homeassistant/components/nexia/manifest.json @@ -1,7 +1,7 @@ { "domain": "nexia", "name": "Nexia/American Standard/Trane", - "requirements": ["nexia==2.0.2"], + "requirements": ["nexia==2.0.4"], "codeowners": ["@bdraco"], "documentation": "https://www.home-assistant.io/integrations/nexia", "config_flow": true, diff --git a/homeassistant/components/nexia/switch.py b/homeassistant/components/nexia/switch.py index e242032c947..643a4d585c4 100644 --- a/homeassistant/components/nexia/switch.py +++ b/homeassistant/components/nexia/switch.py @@ -62,7 +62,7 @@ class NexiaHoldSwitch(NexiaThermostatZoneEntity, SwitchEntity): if self._zone.get_current_mode() == OPERATION_MODE_OFF: await self._zone.call_permanent_off() else: - await self._zone.call_permanent_hold() + await self._zone.set_permanent_hold() self._signal_zone_update() async def async_turn_off(self, **kwargs: Any) -> None: diff --git a/requirements_all.txt b/requirements_all.txt index 4f0f9722b96..7a2e3c7c32b 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1138,7 +1138,7 @@ nettigo-air-monitor==1.4.2 neurio==0.3.1 # homeassistant.components.nexia -nexia==2.0.2 +nexia==2.0.4 # homeassistant.components.nextcloud nextcloudmonitor==1.1.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index f0bbbb4a177..a00a568d227 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -828,7 +828,7 @@ netmap==0.7.0.2 nettigo-air-monitor==1.4.2 # homeassistant.components.nexia -nexia==2.0.2 +nexia==2.0.4 # homeassistant.components.discord nextcord==2.0.0a8