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

Add option to disable specific integrations #16757

Merged
merged 2 commits into from
Sep 20, 2018
Merged

Conversation

balloob
Copy link
Member

@balloob balloob commented Sep 20, 2018

Description:

Add options to disable the Alexa or Google Assistant integration via the websocket UI.

Example entry for configuration.yaml (if applicable):

cloud:

Checklist:

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

If the code does not interact with devices:

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

mock_cloud(hass)
return mock_cloud_prefs(hass)


Choose a reason for hiding this comment

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

blank line at end of file

connection.to_write.put_nowait(websocket_api.error_message(
msg['id'], 'not_logged_in',
'You need to be logged in to the cloud.'))
return
Copy link
Member

Choose a reason for hiding this comment

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

It's the same code like in other websocket command

@balloob balloob merged commit 092c146 into dev Sep 20, 2018
@ghost ghost removed the in progress label Sep 20, 2018
@balloob balloob deleted the disable-cloud-integration branch September 20, 2018 21:46
@balloob balloob mentioned this pull request Sep 28, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Feb 5, 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