Skip to content

"unavailable" Media players should be considered off in Universal player#14466

Merged
syssi merged 1 commit into
home-assistant:devfrom
OverloadUT:fix-universal-home-theater-unavailable-state
May 16, 2018
Merged

"unavailable" Media players should be considered off in Universal player#14466
syssi merged 1 commit into
home-assistant:devfrom
OverloadUT:fix-universal-home-theater-unavailable-state

Conversation

@OverloadUT
Copy link
Copy Markdown
Contributor

Description:

The Universal media player inherits the states of the first child player that is not in some sort of "Off" state (including idle.) It was not considering the "unavailable" state to be off. Now it does.

Related issue (if applicable): n/a

Pull request in home-assistant.github.io with documentation (if applicable): n/a

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass

The Universal media player inherits the states of the first child player that is not in some sort of "Off" state (including idle.) It was not considering the "unavailable" state to be off. Now it does.
@syssi
Copy link
Copy Markdown
Member

syssi commented May 15, 2018

Which media player (mediaroom, soundtouch?) returns the "unavailable" state?

@OverloadUT
Copy link
Copy Markdown
Contributor Author

The only one I know about is Plex returns the unavailable state when a Plex client goes offline (and is therefore uncontrollable).

The behavior is defined all the way up in Entity, though - if any entity sets its self.available to false, the state will become STATE_UNAVAILABLE.

@syssi syssi merged commit 5ff5c73 into home-assistant:dev May 16, 2018
@OverloadUT OverloadUT deleted the fix-universal-home-theater-unavailable-state branch May 19, 2018 02:28
@balloob balloob mentioned this pull request May 28, 2018
girlpunk pushed a commit to girlpunk/home-assistant that referenced this pull request Sep 4, 2018
…yer (home-assistant#14466)

The Universal media player inherits the states of the first child player that is not in some sort of "Off" state (including idle.) It was not considering the "unavailable" state to be off. Now it does.
@home-assistant home-assistant locked and limited conversation to collaborators Sep 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants