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 #821

Closed
wants to merge 6 commits into from
Closed

Minor cleanup and isdimmable fix #821

wants to merge 6 commits into from

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.

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.

1 participant