-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dimming_delta support #417
base: main
Are you sure you want to change the base?
Add dimming_delta support #417
Conversation
I think it makes sense to open the libraries api a bit more to support dimming_delta functionality. So I'll change the code in a more generic way like
if brightness is None we do not send any update, however this should not happen :) |
f7b4892
to
aad9012
Compare
aa4d88b
to
3e0ba79
Compare
@olsen-sorensen any follow-up on my small comment ? Then we can wrap it up |
@marcelveldt sure thing, as the brightness_delta parameter is a float value I have to change that anyways, I'll set a stop action if brightness value is not passed or None, that's more correct. |
3e0ba79
to
b25a585
Compare
This method sets the brightness_delta value and its action based on the value to up/down/stop. This can be useful if someone wants to dim a light to the max/min value within a dedicated transition time but stop the transition when for instance a btn was released.
b25a585
to
5b75b22
Compare
This method sets the brightness_delta value and its action based on the
value to up/down/stop. This can be useful if someone wants to dim a light to
the max/min value within a dedicated transition time but stop the
transition when for instance a btn was released.
resolves #420