Add light platform to qbus#136168
Add light platform to qbus#136168zweckj merged 7 commits intohome-assistant:devfrom Qbus-iot:platform-light
Conversation
|
Hey there @Qbus-iot, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
There was a problem hiding this comment.
As far as my understanding goes, this looks good.
One question I had was whether Qbus dimmers have a separate on/off state as well as the dimmer state.
For example is setting dimmer to 0% the same as turning it off? For some integrations in those cases the dimmer is active but at a very low brightness which is usually not what people want (energy use, heat output, sometimes sound etc).
I looked at the QBus documentation for a short time but couldn't find this out either way.
Another way of asking is whether the QBusMqttOnOffState can be set for a dimmer. Do you know?
|
Hi! We discussed this internally and you are actually right about on/off! Setting the value to 0% does turn the dimmer off. But using the I'll update the code. |
|
Code has been updated |
|
Some voip test failed. Should I rebase the latest dev version? |
|
As you say, the failure was unrelated. I just reran the test and it passed, so no need to rebase. Thanks! |
davet2001
left a comment
There was a problem hiding this comment.
Looks good to me!
Thanks @thomasddn!
|
Just wondering, no pressure: am I supposed to do something or are we waiting until after the February release? Sorry, I'm not sure how this typically works. |
|
@thomasddn nothing more needed from you, it's on us now! I'll request a 2nd opinion before merging in case I missed something. |
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
|
Hi! A few things were changed after a second opinion review. Are we able to merge now? |
Proposed change
Add support for light platform to the qbus integration. Because of that, a function has been moved so it can be used by several platforms.
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: