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
cf41dc63
Unverified
Commit
cf41dc63
authored
2 years ago
by
epenet
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Adjust Available in hisense_aehw4a1 (#77590)
parent
86c7f0bb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
homeassistant/components/hisense_aehw4a1/climate.py
+3
-8
3 additions, 8 deletions
homeassistant/components/hisense_aehw4a1/climate.py
with
3 additions
and
8 deletions
homeassistant/components/hisense_aehw4a1/climate.py
+
3
−
8
View file @
cf41dc63
...
...
@@ -158,7 +158,7 @@ class ClimateAehW4a1(ClimateEntity):
self
.
_fan_modes
=
FAN_MODES
self
.
_swing_modes
=
SWING_MODES
self
.
_preset_modes
=
PRESET_MODES
self
.
_available
=
Non
e
self
.
_
attr_
available
=
Fals
e
self
.
_on
=
None
self
.
_current_temperature
=
None
self
.
_target_temperature
=
None
...
...
@@ -176,10 +176,10 @@ class ClimateAehW4a1(ClimateEntity):
_LOGGER
.
warning
(
"
Unexpected error of %s: %s
"
,
self
.
_unique_id
,
library_error
)
self
.
_available
=
False
self
.
_
attr_
available
=
False
return
self
.
_available
=
True
self
.
_
attr_
available
=
True
self
.
_on
=
status
[
"
run_status
"
]
...
...
@@ -226,11 +226,6 @@ class ClimateAehW4a1(ClimateEntity):
self
.
_target_temperature
=
None
self
.
_preset_mode
=
None
@property
def
available
(
self
):
"""
Return True if entity is available.
"""
return
self
.
_available
@property
def
name
(
self
):
"""
Return the name of the climate device.
"""
...
...
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