-
Notifications
You must be signed in to change notification settings - Fork 45
Add AnalogInput sensor, use description attribute for fallback_name #197
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
Merged
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
fb7e071
Use description attribute for fallback_name
prairiesnpr abdd5c6
Update AnalogIn, MultistateIn, and BinIn CL Handlers
prairiesnpr 86003fe
Register AnalogInput as Sensor
prairiesnpr 2c3a9d9
Add MultistateInput and AnalogInput Sensor
prairiesnpr 7c803b8
Add Binary Sensor Test
prairiesnpr fa4e91c
Add Sensor - General test
prairiesnpr 75bb500
Remove xbee AI, Update Dev Sig
prairiesnpr efb6c06
The empty enum is required
prairiesnpr aaf6ad0
Clean up Multistate Input, better tests
prairiesnpr 831442b
cp errors
prairiesnpr 1d0f706
Remove constants, update tests and Analog Input
prairiesnpr ab1e9d9
Remove changed device signatures
prairiesnpr bd34bfd
Update tests due to upsteam changes
prairiesnpr 4dd2e05
Merge remote-tracking branch 'origin' into use_description_attr
prairiesnpr 2fffecc
Merge branch 'dev' into use_description_attr
prairiesnpr 93f54ad
Merge branch 'dev' into use_description_attr
prairiesnpr 1c30930
Merge branch 'dev' into use_description_attr
prairiesnpr a9704b5
Merge branch 'zigpy:dev' into use_description_attr
prairiesnpr b43e578
Merge branch 'zigpy:dev' into use_description_attr
prairiesnpr 259284f
Update tests.
prairiesnpr 5215228
Merge branch 'dev' into use_description_attr
prairiesnpr 3a9f79e
Merge branch 'dev' into use_description_attr
prairiesnpr 5b17d66
Merge branch 'zigpy:dev' into use_description_attr
prairiesnpr f746e21
Merge branch 'dev' into use_description_attr
prairiesnpr c93a9a5
Merge branch 'dev' into use_description_attr
prairiesnpr d2d3c16
Revert "Remove changed device signatures"
puddly 193ebdc
Merge branch 'dev' into use_description_attr
puddly 7cdfdca
Clean up analog input handling
puddly dfa0374
Fix up multistate input
puddly a98785a
Fix up binary input
puddly f1057d0
Regenerate diagnostics (unaffected)
puddly 94cf488
Regenerate diagnostics (affected)
puddly 519f6c0
Redo the BACnet units
puddly 9ee428b
Fix formatting for multistate input sensor
puddly 9fca8c1
Add fallback name to analog input sensor
puddly eba23d3
Remove apptype unit conversions
puddly a2354ec
Fix app type conversion
puddly 3b21131
Fix unit tests
puddly fe3a7e7
Merge branch 'dev' into use_description_attr
puddly 3c6dff3
Regenerate diagnostics
puddly cbcd964
Merge branch 'dev' into use_description_attr
puddly 521c904
Merge branch 'dev' into use_description_attr
puddly 5e0ff63
Remove multistate input, for now
puddly 929d473
Regenerate diagnostics
puddly 0e12c74
New algorithm for resolution to decimal precision
puddly 876264c
Use parent class implementation of formatter for `EnumSensor`
puddly 969fa50
Bring up test coverage
puddly b0dc46e
Remove multistate cluster handler definitions, for now
puddly 7fa8420
Revert `options` in info object
puddly 1639dd1
Revert behavior of `EnumSensor` returning `None`
puddly 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
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
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.
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.
More of a note: These entities shouldn't be present anymore.
We've replaced these
AnalogOutput
config entities for a lot of Tuya sensors with proper quirks v2 entities.However, they'll still be in the zigpy attribute cache, until the device is re-paired.
I thought that the quirks v1 signature/replacement shouldn't persist to the database, but I remember we've had that issue at one point, so the quirked signature might be stuck in the database, or these were saved when the v1 quirks were still present and the regeneration of diagnostics just looked at the quirked signature and not the original signature?
We might wanna add a
.removes(AnalogInput.cluster_id, endpoint_id=xx)
to a whole lot of Tuya quirks for the various fake config entities that were added in the past...Assuming these entities are still "provided" (but non-functional) for real users.