Skip to content
Snippets Groups Projects
Unverified Commit ba5e3ca4 authored by Brent Petit's avatar Brent Petit Committed by GitHub
Browse files

Remove use of deprecated set_aux_heat call from climate _async_reproduce_states (#121873)

parent e2c6b791
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,6 @@ from homeassistant.const import ATTR_TEMPERATURE
from homeassistant.core import Context, HomeAssistant, State
from .const import (
ATTR_AUX_HEAT,
ATTR_FAN_MODE,
ATTR_HUMIDITY,
ATTR_HVAC_MODE,
......@@ -20,7 +19,6 @@ from .const import (
ATTR_TARGET_TEMP_LOW,
DOMAIN,
HVAC_MODES,
SERVICE_SET_AUX_HEAT,
SERVICE_SET_FAN_MODE,
SERVICE_SET_HUMIDITY,
SERVICE_SET_HVAC_MODE,
......@@ -56,9 +54,6 @@ async def _async_reproduce_states(
if state.state in HVAC_MODES:
await call_service(SERVICE_SET_HVAC_MODE, [], {ATTR_HVAC_MODE: state.state})
if ATTR_AUX_HEAT in state.attributes:
await call_service(SERVICE_SET_AUX_HEAT, [ATTR_AUX_HEAT])
if (
(ATTR_TEMPERATURE in state.attributes)
or (ATTR_TARGET_TEMP_HIGH in state.attributes)
......
......@@ -3,7 +3,6 @@
import pytest
from homeassistant.components.climate import (
ATTR_AUX_HEAT,
ATTR_FAN_MODE,
ATTR_HUMIDITY,
ATTR_PRESET_MODE,
......@@ -11,7 +10,6 @@ from homeassistant.components.climate import (
ATTR_TARGET_TEMP_HIGH,
ATTR_TARGET_TEMP_LOW,
DOMAIN,
SERVICE_SET_AUX_HEAT,
SERVICE_SET_FAN_MODE,
SERVICE_SET_HUMIDITY,
SERVICE_SET_HVAC_MODE,
......@@ -96,7 +94,6 @@ async def test_state_with_context(hass: HomeAssistant) -> None:
@pytest.mark.parametrize(
("service", "attribute"),
[
(SERVICE_SET_AUX_HEAT, ATTR_AUX_HEAT),
(SERVICE_SET_PRESET_MODE, ATTR_PRESET_MODE),
(SERVICE_SET_SWING_MODE, ATTR_SWING_MODE),
(SERVICE_SET_FAN_MODE, ATTR_FAN_MODE),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment