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

Alexa to not use customize for entity config #11461

Merged
merged 6 commits into from
Jan 5, 2018

Conversation

balloob
Copy link
Member

@balloob balloob commented Jan 5, 2018

Description:

Components should never rely on config stored inside customize. This fixes this for the Alexa integration.

Related issue (if applicable): #10732

Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>

Breaking change

Customizations for how entities are exposed to Alexa are no longer set via customize. Instead they are set via the configuration of the cloud component:

cloud:
  alexa:
    entity_config:
      switch.kitchen:
        name: 'Name for Alexa'
        description: 'Description for Alexa'
        display_categories: 'LIGHT'

Example entry for configuration.yaml (if applicable):

cloud:

Checklist:

If the code does not interact with devices:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • Tests have been added to verify that the new code works.

@balloob balloob force-pushed the not-use-customize-config-alexa branch from 0f3bba6 to 04c7c91 Compare January 5, 2018 06:01
should_expose=alexa_conf[CONF_FILTER],
entity_config=alexa_conf.get(CONF_ENTITY_CONFIG),
)
kwargs['gass_should_expose'] = gactions_conf[CONF_FILTER]
Copy link
Member

Choose a reason for hiding this comment

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

gass? Should the abbreviation be changed to match google actions? Maybe gact?

should_expose=self._gass_should_expose,
if self._gactions_config is None:
self._gactions_config = ga_sh.Config(
should_expose=lambda e: self._gactions_should_expose(e.entity_id),

Choose a reason for hiding this comment

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

line too long (82 > 79 characters)

@balloob balloob merged commit 8b57777 into dev Jan 5, 2018
@balloob balloob deleted the not-use-customize-config-alexa branch January 5, 2018 20:43
@home-assistant home-assistant locked and limited conversation to collaborators May 29, 2018
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.

5 participants