Skip to content

Commit

Permalink
TC-SWTCH tests (#34559)
Browse files Browse the repository at this point in the history
* Add non-AS switch endpoint to all-clusters

* Add has_feature partial for decorator

* TC-SWTCH-2.5: Add

Also adds a non-AS implementation in the button simulator.

* Restyled by autopep8

* Restyled by isort

* linter

* Fix test errors

- Need tag list on descriptors for ep3 and ep4 because they're now
  sibling endpoints
- Fix desc test to expect the other endpoint

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
cecille and restyled-commits authored Jul 29, 2024
1 parent 37fc757 commit 295ad53
Show file tree
Hide file tree
Showing 10 changed files with 1,077 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9384,6 +9384,41 @@ endpoint 3 {
ram attribute clusterRevision default = 2;
}
}
endpoint 4 {
device type ma_genericswitch = 15, version 3;


server cluster Identify {
ram attribute identifyTime default = 0x0000;
ram attribute identifyType default = 0x00;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 4;
}

server cluster Descriptor {
callback attribute deviceTypeList;
callback attribute serverList;
callback attribute clientList;
callback attribute partsList;
callback attribute tagList;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute attributeList;
callback attribute featureMap;
callback attribute clusterRevision;
}

server cluster Switch {
ram attribute numberOfPositions default = 2;
ram attribute currentPosition default = 0;
ram attribute multiPressMax default = 3;
ram attribute featureMap default = 30;
ram attribute clusterRevision default = 2;
}
}
endpoint 65534 {
device type ma_secondary_network_interface = 25, version 1;

Expand Down
Loading

0 comments on commit 295ad53

Please sign in to comment.