From 0cd3302ebc5951c9ecd00ab1e6cd9ae28173fab5 Mon Sep 17 00:00:00 2001 From: Brett Adams Date: Mon, 24 Jan 2022 16:13:44 +1000 Subject: [PATCH] Start depreciation of custom services in Advantage Air (#58777) Co-authored-by: J. Nick Koston --- homeassistant/components/advantage_air/climate.py | 7 +++++++ homeassistant/components/advantage_air/services.yaml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/advantage_air/climate.py b/homeassistant/components/advantage_air/climate.py index 165ecf9bb1c..ea31ae71942 100644 --- a/homeassistant/components/advantage_air/climate.py +++ b/homeassistant/components/advantage_air/climate.py @@ -1,6 +1,8 @@ """Climate platform for Advantage Air integration.""" from __future__ import annotations +import logging + from homeassistant.components.climate import ClimateEntity from homeassistant.components.climate.const import ( FAN_AUTO, @@ -63,6 +65,8 @@ ZONE_HVAC_MODES = [HVAC_MODE_OFF, HVAC_MODE_HEAT_COOL] PARALLEL_UPDATES = 0 +_LOGGER = logging.getLogger(__name__) + async def async_setup_entry( hass: HomeAssistant, @@ -220,6 +224,9 @@ class AdvantageAirZone(AdvantageAirClimateEntity): async def set_myzone(self, **kwargs): """Set this zone as the 'MyZone'.""" + _LOGGER.warning( + "The advantage_air.set_myzone service has been deprecated and will be removed in a future version, please use the select.select_option service on the MyZone entity" + ) await self.async_change( {self.ac_key: {"info": {"myZone": self._zone["number"]}}} ) diff --git a/homeassistant/components/advantage_air/services.yaml b/homeassistant/components/advantage_air/services.yaml index 33f39065f8a..38f21e57128 100644 --- a/homeassistant/components/advantage_air/services.yaml +++ b/homeassistant/components/advantage_air/services.yaml @@ -18,7 +18,7 @@ set_time_to: set_myzone: name: Set MyZone - description: Change which zone is set as the reference for temperature control + description: Change which zone is set as the reference for temperature control (deprecated) target: entity: integration: advantage_air