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
8fc8ce81
Unverified
Commit
8fc8ce81
authored
4 years ago
by
reaper7
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix enigma2 off state (#42407)
parent
67b35521
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
homeassistant/components/enigma2/media_player.py
+5
-0
5 additions, 0 deletions
homeassistant/components/enigma2/media_player.py
with
5 additions
and
0 deletions
homeassistant/components/enigma2/media_player.py
+
5
−
0
View file @
8fc8ce81
...
@@ -133,6 +133,11 @@ class Enigma2Device(MediaPlayerEntity):
...
@@ -133,6 +133,11 @@ class Enigma2Device(MediaPlayerEntity):
return
STATE_PLAYING
return
STATE_PLAYING
return
STATE_OFF
if
self
.
e2_box
.
in_standby
else
STATE_ON
return
STATE_OFF
if
self
.
e2_box
.
in_standby
else
STATE_ON
@property
def
available
(
self
):
"""
Return True if the device is available.
"""
return
self
.
e2_box
.
is_offline
@property
@property
def
supported_features
(
self
):
def
supported_features
(
self
):
"""
Flag of media commands that are supported.
"""
"""
Flag of media commands that are supported.
"""
...
...
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