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

Clean up device update, add via-hub #16659

Merged
merged 5 commits into from
Sep 17, 2018
Merged

Clean up device update, add via-hub #16659

merged 5 commits into from
Sep 17, 2018

Conversation

balloob
Copy link
Member

@balloob balloob commented Sep 17, 2018

Description:

  • Add some missing test coverage to device registry and entity platform's usage of device registry
  • Make entity and device registry entries immutable again
  • Add a via_hub option to device_info so that devices can indicate via what hub they are communicating.

Docs PR: home-assistant/developers.home-assistant#88

CC @Kane610

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.

@balloob balloob requested a review from a team as a code owner September 17, 2018 10:14
@ghost ghost assigned balloob Sep 17, 2018
@ghost ghost added the in progress label Sep 17, 2018
devices[device['id']] = DeviceEntry(
config_entries=set(device['config_entries']),
connections={tuple(conn) for conn in device['connections']},
identifiers={tuple(iden) for iden in device['identifiers']},

Choose a reason for hiding this comment

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

line too long (80 > 79 characters)

for device in data['devices']:
devices[device['id']] = DeviceEntry(
config_entries=set(device['config_entries']),
connections={tuple(conn) for conn in device['connections']},

Choose a reason for hiding this comment

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

line too long (80 > 79 characters)

Copy link
Member

@Kane610 Kane610 left a comment

Choose a reason for hiding this comment

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

Looks good!

@balloob balloob merged commit b825786 into dev Sep 17, 2018
@balloob balloob deleted the dev-registry-hub branch September 17, 2018 11:39
@ghost ghost removed the in progress label Sep 17, 2018
@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