Skip to content

Add Plex config options support#26870

Merged
MartinHjelmare merged 5 commits into
home-assistant:devfrom
jjlawren:plex_config_options
Sep 26, 2019
Merged

Add Plex config options support#26870
MartinHjelmare merged 5 commits into
home-assistant:devfrom
jjlawren:plex_config_options

Conversation

@jjlawren
Copy link
Copy Markdown
Contributor

@jjlawren jjlawren commented Sep 24, 2019

Description:

Add config options support for Plex media_player platform options (use_episode_art and show_all_controls).

Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#10450

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.

Comment thread homeassistant/components/plex/config_flow.py Outdated
"""Set up Plex from a config entry."""
server_config = entry.data[PLEX_SERVER_CONFIG]

if MP_DOMAIN not in entry.options:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Shouldn't you add tests for this as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'd eventually like to add tests for files outside of config_flow.py, but I'm not there quite yet.

Comment thread homeassistant/components/plex/server.py Outdated
Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

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

Looks good!

@MartinHjelmare MartinHjelmare merged commit 9b204ad into home-assistant:dev Sep 26, 2019
@jjlawren jjlawren deleted the plex_config_options branch September 26, 2019 13:52
@lock lock Bot locked and limited conversation to collaborators Sep 27, 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.

4 participants