Skip to content

Add device condition support for media_player#28161

Merged
balloob merged 2 commits into
home-assistant:devfrom
shmooey:device-condition-media
Oct 25, 2019
Merged

Add device condition support for media_player#28161
balloob merged 2 commits into
home-assistant:devfrom
shmooey:device-condition-media

Conversation

@shmooey
Copy link
Copy Markdown
Contributor

@shmooey shmooey commented Oct 24, 2019

Description:

Adds basic device condition support for media_player integration - on, off, idle, paused, playing.

Related issue (if applicable): fixes #27004

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist

If user exposed functionality or configuration variables are added/changed:

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

@shmooey
Copy link
Copy Markdown
Contributor Author

shmooey commented Oct 24, 2019

Is there anything I need to do in home-assistant-polymer? When I went to see what it looked like in the UI, the condition dropdown items were all blank for me.

image

Also, what kind of documentation should I add, if any?

@balloob
Copy link
Copy Markdown
Member

balloob commented Oct 24, 2019

Great first contribution 👍 Run script/translations_develop to get UI strings to work.

Copy link
Copy Markdown
Member

@balloob balloob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great ! 🎉

Welcome to the Home Assistant community 🐬

@balloob
Copy link
Copy Markdown
Member

balloob commented Oct 24, 2019

This can be merged when you format your code with Black so the tests pass 👍

You can run black path/to/file.py

@shmooey shmooey force-pushed the device-condition-media branch from 55c98a4 to 5ee63b0 Compare October 25, 2019 00:49
@shmooey
Copy link
Copy Markdown
Contributor Author

shmooey commented Oct 25, 2019

The formatting error was caused by #28171, I've rebased this branch so the Black issue is fixed now 😊

@balloob
Copy link
Copy Markdown
Member

balloob commented Oct 25, 2019

Oh snap, didn't realize. Wish Black would give some more output so we know where to look.

Great work ! 🐬

@balloob balloob merged commit 2c914e0 into home-assistant:dev Oct 25, 2019
@lock lock Bot locked and limited conversation to collaborators Oct 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add device condition support to the media_player integration

3 participants