Skip to content

deCONZ - battery sensor instead of battery attribute#26591

Merged
Kane610 merged 8 commits into
home-assistant:devfrom
Kane610:deconz-battery-sensor
Sep 14, 2019
Merged

deCONZ - battery sensor instead of battery attribute#26591
Kane610 merged 8 commits into
home-assistant:devfrom
Kane610:deconz-battery-sensor

Conversation

@Kane610
Copy link
Copy Markdown
Member

@Kane610 Kane610 commented Sep 11, 2019

Breaking Change:

Standardizes battery sensor unique id to the serial number of device + battery.
Entity attribute battery level will no longer be available, this will instead be exposed as a separate entity just as with remotes previously.

Description:

Move battery attribute to a standalone sensor per physical device

Related issue (if applicable): fixes Kane610/deconz#42

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 the code does not interact with devices:

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

@Kane610 Kane610 self-assigned this Sep 11, 2019
@probot-home-assistant probot-home-assistant Bot added the small-pr PRs with less than 30 lines. label Sep 11, 2019
@Kane610 Kane610 marked this pull request as ready for review September 12, 2019 20:23
@Kane610 Kane610 force-pushed the deconz-battery-sensor branch 2 times, most recently from 7493dc6 to f8a69ac Compare September 14, 2019 11:12
@Kane610 Kane610 force-pushed the deconz-battery-sensor branch from f8a69ac to 005a665 Compare September 14, 2019 13:16
Comment thread homeassistant/components/deconz/sensor.py Outdated
@Kane610
Copy link
Copy Markdown
Member Author

Kane610 commented Sep 14, 2019

@MartinHjelmare any additional comments?

Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

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

Looks great!

@Kane610
Copy link
Copy Markdown
Member Author

Kane610 commented Sep 14, 2019

Awesome, thanks @MartinHjelmare

@Kane610 Kane610 merged commit 41c9ed5 into home-assistant:dev Sep 14, 2019
@Kane610 Kane610 deleted the deconz-battery-sensor branch September 14, 2019 17:15
@lock lock Bot locked and limited conversation to collaborators Sep 15, 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.

Battery levels as own entities

3 participants