Add support for switchbot presence sensor#157148
Conversation
|
Hey there @Danielhiversen, @RenierM26, @murtas, @Eloston, @dsypniewski, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
|
There is an existing PR: #156314 |
…ence sensor Presence sensors provide a battery_range field (e.g., '>=60%') in addition to the numeric battery percentage. Add sensor entity description and translation for this field. Also update test to expect 4 sensors instead of 3 and verify the battery_range sensor is created correctly. Incorporates changes from PR home-assistant#157148.
joostlek
left a comment
There was a problem hiding this comment.
So another PR now got merged. The only thing it lacks is the battery range. I don't mind having a discussion about that sensor, but like, we already have battery percentage for this device, what will a battery range add? I'd only add it if we find out that the device doesn't really work well with the battery percentage, but in that case we should remove the battery percentage and only expose the range.
But since getting this branch up to date probably takes more time, I am going to close it, but if you feel different about the battery entities, feel free to discuss :)
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
|
thanks @joostlek |
Proposed change
Type of change
Additional information
Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all.To help with the load of incoming pull requests: