Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use voluptuous for Yamaha receiver #3210

Merged
merged 2 commits into from
Sep 14, 2016
Merged

Use voluptuous for Yamaha receiver #3210

merged 2 commits into from
Sep 14, 2016

Conversation

fabaff
Copy link
Member

@fabaff fabaff commented Sep 5, 2016

Description:
Migration of the configuration check to voluptuous.
Related issue (if applicable): fixes 127528299

Example entry for configuration.yaml (if applicable):

media_player:
  platform: yamaha
  name: 'Basement Receiver'

@aoakeson @TheRealLink , would be nice if you could take a look at the changes and run a quick test. Thanks.

@fabaff fabaff mentioned this pull request Sep 5, 2016

PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
})
Copy link
Contributor

Choose a reason for hiding this comment

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

Pretty sure we need:

vol.Optional(CONF_SOURCE_IGNORE, []): vol.All(cv.ensurelist, [...]),
vol.Optional(CONF_SOURCE_NAMES, {}): vol.All(....)

Copy link
Member Author

Choose a reason for hiding this comment

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

According to the code we do. Seems that the docs needs an update as well.

@balloob balloob merged commit 68def21 into home-assistant:dev Sep 14, 2016
hartmms pushed a commit to hartmms/home-assistant that referenced this pull request Sep 17, 2016
* Migrate to voluptuous

* Add missing configuration variables
@fabaff fabaff deleted the voluptuous-yamaha branch September 19, 2016 08:26
@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
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.

3 participants