Skip to content

Revise Node.dimmable property to exclude non-dimmable subnodes#122

Merged
shbatm merged 2 commits into
automicus:masterfrom
shbatm:dimmable_changes
Sep 12, 2020
Merged

Revise Node.dimmable property to exclude non-dimmable subnodes#122
shbatm merged 2 commits into
automicus:masterfrom
shbatm:dimmable_changes

Conversation

@shbatm

@shbatm shbatm commented Sep 12, 2020

Copy link
Copy Markdown
Collaborator

Breaking Change

  • Node.dimmable has been depreciated in favor of Node.is_dimmable to make the naming more consistent with is_lock and is_thermostat. Node.dimmable will still work, however, plan for it to be removed in the future.
  • Node.is_dimmable will only include the first subnode for Insteon devices in type 1. This should represent the main (load) button for KeypadLincs and the light for FanLincs, all other subnodes (KPL buttons and Fan Motor) are not dimmable (fixes Issues with KPL Button Nodes #110)

All Changes

  • Revise is_lock, is_thermostat, and is_lock properties of the Node class to be more consistent.
  • Use string literals for special Insteon types

General Notes

  • Using the is_dimmable property of a node is not considered reliable. As of Version 2, there is no truly reliable "sorting" of device types within the PyISY module itself, the module is non-discriminate when allowing command calls to the ISY. It is expected that the code using this module takes additional steps to ensure only valid commands are called on the various device types or risk them being ignored by the ISY.

@shbatm
shbatm merged commit ef85850 into automicus:master Sep 12, 2020
@shbatm
shbatm deleted the dimmable_changes branch September 12, 2020 01:19
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.

Issues with KPL Button Nodes

1 participant