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

Support alexa SMARTPLUG display category based on switch outlet device_class #28221



Copy link

ochlocracy commented Oct 26, 2019


Returns the default display category based on switch device_class. Defaults to switch, to support existing entities or entities without device_class attribute.


  • 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
  • Tests have been added to verify that the new code works.

This comment has been minimized.

Copy link

probot-home-assistant bot commented Oct 26, 2019

Hey there @home-assistant/cloud, mind taking a look at this pull request as its been labeled with a integration (alexa) you are listed as a codeowner for? Thanks!

@project-bot project-bot bot moved this from Needs review to By Code Owner in Dev Oct 26, 2019
@MartinHjelmare MartinHjelmare changed the title Support SMARTPLUG display category based one switch outlet device_class. Support alexa SMARTPLUG display category based on switch outlet device_class Oct 28, 2019
Dev automation moved this from By Code Owner to Reviewer approved Nov 25, 2019
@balloob balloob merged commit dc8c085 into home-assistant:dev Nov 25, 2019
12 checks passed
12 checks passed
CI Build #20191026.7 succeeded
CI (FullCheck Mypy) FullCheck Mypy succeeded
CI (FullCheck Pylint) FullCheck Pylint succeeded
CI (Overview CheckFormat) Overview CheckFormat succeeded
CI (Overview Lint) Overview Lint succeeded
CI (Overview Validate) Overview Validate succeeded
CI (Tests PyTest Python36) Tests PyTest Python36 succeeded
CI (Tests PyTest Python37) Tests PyTest Python37 succeeded
cla-bot Everyone involved has signed the CLA
codecov/patch 100% of diff hit (target 94.33%)
codecov/project 94.33% (target 90%)
docs-missing Documentation ok.
Dev automation moved this from Reviewer approved to Done Nov 25, 2019
@lock lock bot locked and limited conversation to collaborators Nov 26, 2019
@ochlocracy ochlocracy deleted the ochlocracy:alexa-switch-display-category branch Dec 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
3 participants
You can’t perform that action at this time.