Skip to content
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

Minor cleanup and isdimmable fix #822

Merged
merged 7 commits into from
Feb 2, 2021
Merged

Minor cleanup and isdimmable fix #822

merged 7 commits into from
Feb 2, 2021

Conversation

DaveNeudoerffer
Copy link
Contributor

The is_dimmable test has been added for objects. is_dimmable can be implemented by a device class and return true for dimmable objects. This is modelled on a test that was in http_server.pl. I avoided changing Generic_Item to implement a default for this, although I really wanted to. This change makes the dimmable attribute an object property, not a class property -- this is important for a submission I will be making soon to add mqtt discovery. Cleaned up the code in Alexa and AOG that was trying to determine if an object was dimmable.

There are also a couple minor fixes to messages and comments.

My previous pull request #813 is also stacked in here.

@hplato hplato merged commit 7e2113f into hollie:master Feb 2, 2021
@hplato hplato mentioned this pull request Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants