-
Notifications
You must be signed in to change notification settings - Fork 721
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
Convert Sinope light to new style AttributeDefs, add ZHA events #3313
Merged
Merged
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
c9efede
wip
e794ab0
cleanup
ca9ad45
missing cluster_id
9411920
remove debug
adb9414
everything working!
8fde985
fix test
ed32119
improve tests
ckm2k1 77b814e
test single on/off and broken actions
ckm2k1 e191169
rename per review
ckm2k1 93a6276
clean up namespace refs
ckm2k1 316a8a4
convert to new style AttributeDefs
ckm2k1 ba37c80
use attrdefs
ckm2k1 94e04d8
use attrdefs
ckm2k1 d1a0677
cluster rev
ckm2k1 ed2380c
Access `action_report` id via `AttributeDefs`
TheJulianJES c8993f4
Add back missing comma
TheJulianJES 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
|
||
SINOPE = "Sinope Technologies" | ||
SINOPE_MANUFACTURER_CLUSTER_ID = 0xFF01 | ||
ATTRIBUTE_ACTION = "actionReport" | ||
ATTRIBUTE_ACTION = "action_report" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changing this might cause issues with current automations that do not use device triggers, right? |
||
|
||
LIGHT_DEVICE_TRIGGERS = { | ||
(SHORT_PRESS, TURN_ON): { | ||
|
Oops, something went wrong.
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.
Tbh, I'm not sure we really need this test in zha quirks? We're not really testing any quirk specific code here, right?
(maybe except that the attribute exists)
We can leave this in for now though.