Skip to content

Add serial to caseta devices#28886

Merged
balloob merged 6 commits into
home-assistant:devfrom
mdonoughe:caseta-registry
Nov 26, 2019
Merged

Add serial to caseta devices#28886
balloob merged 6 commits into
home-assistant:devfrom
mdonoughe:caseta-registry

Conversation

@mdonoughe
Copy link
Copy Markdown
Contributor

@mdonoughe mdonoughe commented Nov 20, 2019

Description:

This adds serial numbers to lutron_caseta devices and enables the entity registry.

This was previously entered as #14037 which could not be merged because pylutron_caseta had not released.

Related issue (if applicable): Incidentally, because this brings in the new release of pylutron_caseta it also partially addresses #22907. It does not add support for fans, but users will no longer lose functionality when a fan controller is introduced.

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

Example entry for configuration.yaml (if applicable): N/A

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 communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt by running python3 -m script.gen_requirements_all.
  • Untested files have been added to .coveragerc.

If the code does not interact with devices:

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

@MartinHjelmare MartinHjelmare changed the title add model and serial to caseta devices Add model and serial to caseta devices Nov 20, 2019
@djj211 djj211 mentioned this pull request Nov 24, 2019
7 tasks
Comment thread homeassistant/components/lutron_caseta/__init__.py Outdated
Comment thread homeassistant/components/lutron_caseta/__init__.py Outdated
Copy link
Copy Markdown
Member

@balloob balloob left a comment

Choose a reason for hiding this comment

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

Few small comments, ok to merge when addressed.

@mdonoughe mdonoughe changed the title Add model and serial to caseta devices Add serial to caseta devices Nov 26, 2019
@balloob balloob merged commit f8a3649 into home-assistant:dev Nov 26, 2019
@@ -0,0 +1,5 @@
{
"config": {
"title": "Lutron Caséta"
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.

Where is this used?

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.

This appears in the entity registry.

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.

(in the UI)

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.

Should we now always add this file if the entity registry is active for an integration?

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.

It looks like that is a new requirement based on the recent changes. I would love for us to be add this translation key at the root instead of config, so we could split out translations into multiple files in the future.

I don't like translation of titles of integrations, but for built-in ones like Lights etc it's useful.

@lock lock Bot locked and limited conversation to collaborators Nov 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants