mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Start depreciation of custom services in Advantage Air (#58777)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
55ff1e9c1d
commit
0cd3302ebc
@ -1,6 +1,8 @@
|
|||||||
"""Climate platform for Advantage Air integration."""
|
"""Climate platform for Advantage Air integration."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import logging
|
||||||
|
|
||||||
from homeassistant.components.climate import ClimateEntity
|
from homeassistant.components.climate import ClimateEntity
|
||||||
from homeassistant.components.climate.const import (
|
from homeassistant.components.climate.const import (
|
||||||
FAN_AUTO,
|
FAN_AUTO,
|
||||||
@ -63,6 +65,8 @@ ZONE_HVAC_MODES = [HVAC_MODE_OFF, HVAC_MODE_HEAT_COOL]
|
|||||||
|
|
||||||
PARALLEL_UPDATES = 0
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
@ -220,6 +224,9 @@ class AdvantageAirZone(AdvantageAirClimateEntity):
|
|||||||
|
|
||||||
async def set_myzone(self, **kwargs):
|
async def set_myzone(self, **kwargs):
|
||||||
"""Set this zone as the 'MyZone'."""
|
"""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(
|
await self.async_change(
|
||||||
{self.ac_key: {"info": {"myZone": self._zone["number"]}}}
|
{self.ac_key: {"info": {"myZone": self._zone["number"]}}}
|
||||||
)
|
)
|
||||||
|
@ -18,7 +18,7 @@ set_time_to:
|
|||||||
|
|
||||||
set_myzone:
|
set_myzone:
|
||||||
name: 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:
|
target:
|
||||||
entity:
|
entity:
|
||||||
integration: advantage_air
|
integration: advantage_air
|
||||||
|
Loading…
x
Reference in New Issue
Block a user