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

Add test fixture files for onoff switch #82

Merged
merged 2 commits into from
Sep 28, 2022

Conversation

jculbert
Copy link
Contributor

Added fixture files for on-off switch. The change adds one test which is passing on my system.

Note, the device type in the node file is set to 266 (0x010A), which maps to OnOffPlugUnit. This matches what is setup in matter_experimental/switch.py.

@jculbert
Copy link
Contributor Author

I just noticed that the serverList in the OnOffPlugUnit cluster is incorrect. I'll wait to see if there is another other feedback before fixing this.

@MartinHjelmare MartinHjelmare changed the title Added test fixture files for onoff switch Add test fixture files for onoff switch Sep 27, 2022
"TLVValue": {
"0": {
"TLVValue": null,
"Reason": "InteractionModelError: Failure (0x1)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we can drop all of ThreadNetworkDiagnostics since it all fails to decode anyway.

Copy link
Contributor

@balloob balloob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change looks good. Minor comment on included data.

Removed ThreadNetworkDiagnostics from endpoint 0
@balloob balloob merged commit 061587e into home-assistant-libs:main Sep 28, 2022
@balloob
Copy link
Contributor

balloob commented Sep 28, 2022

Thanks!

@jculbert
Copy link
Contributor Author

jculbert commented Sep 28, 2022

No problem, glad to contribute.

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.

2 participants