Reolink add new number entities#87932
Conversation
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
|
|
|
@frenck I have adressed all changes you requested, could you do another review? |
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
frenck
left a comment
There was a problem hiding this comment.
LGTM, thanks @starkillerOG 👍
../Frenck
| ReolinkNumberEntityDescription( | ||
| key="floodlight_brightness", | ||
| name="Floodlight turn on brightness", | ||
| icon="mdi:spotlight-beam", | ||
| entity_category=EntityCategory.CONFIG, | ||
| native_step=1, | ||
| native_min_value=1, | ||
| native_max_value=100, | ||
| supported=lambda api, ch: api.supported(ch, "floodLight"), | ||
| value=lambda api, ch: api.whiteled_brightness(ch), | ||
| method=lambda api, ch, value: api.set_whiteled(ch, brightness=int(value)), | ||
| ), |
There was a problem hiding this comment.
What's the difference between this number entity and the light entity for the floodlight?
core/homeassistant/components/reolink/light.py
Lines 46 to 55 in 0c042e8
There was a problem hiding this comment.
I read up on the comment history in the PR.
Please add a code comment explaining the situation so we don't need to wonder what's going on when reading the code.
There was a problem hiding this comment.
I will add a code comment and some extra documentation because this is indeed not clear enough, just a moment
There was a problem hiding this comment.
Documentation PR is here: home-assistant/home-assistant.io#26469
Breaking change
Proposed change
Add Reolink control for:
Completing all reolink features with these PRs:
Type of change
Additional information
Checklist
black --fast 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..coveragerc.To help with the load of incoming pull requests: