Start depreciation of custom services in Advantage Air (#58777)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Brett Adams 2022-01-24 16:13:44 +10:00 committed by GitHub
parent 55ff1e9c1d
commit 0cd3302ebc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -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"]}}}
)

View File

@ -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