Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
HomeAssistant
Core
Commits
ba5e3ca4
Unverified
Commit
ba5e3ca4
authored
8 months ago
by
Brent Petit
Committed by
GitHub
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
homeassistant/components/climate/reproduce_state.py
+0
-5
0 additions, 5 deletions
homeassistant/components/climate/reproduce_state.py
tests/components/climate/test_reproduce_state.py
+0
-3
0 additions, 3 deletions
tests/components/climate/test_reproduce_state.py
with
0 additions
and
8 deletions
homeassistant/components/climate/reproduce_state.py
+
0
−
5
View file @
ba5e3ca4
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
tests/components/climate/test_reproduce_state.py
+
0
−
3
View file @
ba5e3ca4
...
...
@@ -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
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment