-
-
Notifications
You must be signed in to change notification settings - Fork 37.8k
ISY994 sensor improvements #10805
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
Merged
balloob
merged 19 commits into
home-assistant:dev
from
OverloadUT:isy994_sensor_improvements
Dec 14, 2017
Merged
ISY994 sensor improvements #10805
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
3b8a2a7
Fire events for ISY994 control events
OverloadUT 72bbd5d
Move change event subscription to after entity is added to hass
OverloadUT f10822f
Overhaul binary sensors in ISY994 to be functional "out of the box"
OverloadUT 6cbe3b7
Parse the binary sensor device class from the ISY's device "type"
OverloadUT 7f9189c
Code review tweaks
OverloadUT 489fbbc
Handle cases where a sensor's state is unknown
OverloadUT 4de13c4
Clean up from code review
OverloadUT efb000a
Unknown value from PyISY is now -inf rather than -1
OverloadUT 76b9299
Move heartbeat handling to a separate sensor
OverloadUT 624ee06
Add support for Unknown state, which is being added in next PyISY
OverloadUT 24b7af4
Merge branch 'dev' into isy994-control-events
OverloadUT 9cfeaa3
Merge branch 'isy994-control-events' into isy994_sensor_improvements
OverloadUT b9f8422
Change a couple try blocks to explicit None checks
OverloadUT e5da5bc
Bump PyISY to 1.1.0, now that it has been published!
OverloadUT 1c59cc5
Merge branch 'isy994-control-events' into isy994_sensor_improvements
OverloadUT ccf3a9e
Remove -inf checking from base component
OverloadUT 92d8dd4
Restrict negative-node and heartbeat support to known compatible types
OverloadUT e12ee0f
Use new style string formatting
OverloadUT fef3515
Add binary sensor detection for pre-5.x firmware
OverloadUT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When can this
AttributeErrorhappen?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to protect against the
self._node.typenot being set. It comes from a third party API that itself can be populated by fourth party code, so just being defensive here!