Skip to content

Homekit style cleanup#14556

Merged
balloob merged 3 commits intohome-assistant:devfrom
cdce8p:homekit-style-cleanup
May 21, 2018
Merged

Homekit style cleanup#14556
balloob merged 3 commits intohome-assistant:devfrom
cdce8p:homekit-style-cleanup

Conversation

@cdce8p
Copy link
Copy Markdown
Member

@cdce8p cdce8p commented May 20, 2018

Description:

A bit of cleanup for the HomeKit component.

Changes

  • HomeAccessory.update_state() now raises a NotImplementedError to make sure it's overridden for each type.
  • HomeAccessory.update_state_callback() is now a callback and invokes update_state() through self.hass.async_add_job(). diff
  • Sorted imports alphabetically.
  • All service calls from types now use the same structure.
  • Removed constants that aren't needed anymore.
  • Small test improvements

Checklist:

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

cdce8p added 2 commits May 20, 2018 13:41
* Sorted imports
* Harmonized service calls
@cdce8p cdce8p changed the title WIP: Homekit style cleanup Homekit style cleanup May 20, 2018
@cdce8p cdce8p added this to the 0.70.0 milestone May 20, 2018
@cdce8p cdce8p mentioned this pull request May 20, 2018
2 tasks
@balloob balloob merged commit 0589379 into home-assistant:dev May 21, 2018
@cdce8p cdce8p deleted the homekit-style-cleanup branch May 21, 2018 02:29
balloob pushed a commit that referenced this pull request May 21, 2018
* Style cleanup

* Sorted imports
* Harmonized service calls

* Test improvements

* Small update
@balloob balloob mentioned this pull request May 28, 2018
girlpunk pushed a commit to girlpunk/home-assistant that referenced this pull request Sep 4, 2018
* Style cleanup

* Sorted imports
* Harmonized service calls

* Test improvements

* Small update
@home-assistant home-assistant locked and limited conversation to collaborators Sep 5, 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.

3 participants