Commit 93d430b
Migrate ValveConfigurationAndControl cluster. (project-chip#42366)
* Valve Configuration And Control code driven cluster migration
* Minor code additions/removals
* Remove trailing spaces
* Fix unit test
* Restyled by whitespace
* Restyled by clang-format
* Restyled by gn
* Restyled by prettier-json
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Fix typos, removed switch braces and change order of Attributes in config file
* Restyled by whitespace
* Restyled by prettier-json
* Fix compilation errors
* Update src/app/clusters/valve-configuration-and-control-server/valve-configuration-and-control-cluster.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Revert Delegate changes
* Revert header changes in Delegate and app implementation
* Update src/app/clusters/valve-configuration-and-control-server/valve-configuration-and-control-cluster.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* changes to build files and unit tests
* Regenerate with ZAP
* Restyled by whitespace
* Restyled by clang-format
* Restyled by gn
* Restyled by prettier-json
* Resolve merge conflicts with ZAP generation
* Regenerate with ZAP
* Add SetLevel API back and fix tests
* Restyled by clang-format
* Add guards for TimeSync dependency
* Fix compilation errors
* Change event logic to avoid double reporting
* Refactor OpenValve functions
* Run ZAP generation
* Restyled by clang-format
* Address PR comments
* Restyled by whitespace
* Restyled by clang-format
* Fix report on error
* Avoid creating repeated events and reverted code to base functionality
* Restyled by clang-format
* Update testing files
* Use AttributePersistence for Nullable types
* Rename variable
* Add initialization struct for values
* Add initialization values to UnitTest
* Rever ember changes for attributes
* Restyled by whitespace
* Restyled by clang-format
* Restyled by prettier-json
* Revert CamelCase file rename
* Address PR comments
* Apply suggestions from code review
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Apply suggestions from code review
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Fix compilation issues
* Restyled by clang-format
* Update Codegen files
* Restyled by clang-format
* Fix comments and remove unused parameter from function
* Restyled by clang-format
* Improve TODO comment
* Restyled by clang-format
* Add command testing and fix PR comments
* Restyled by whitespace
* Restyled by clang-format
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Fix typos
* Fix unit test error caused by test framework change
* Remove initialization from class and add default checks in unit tests
* Revert removal of some attributes with specific default values defined
* Add test files back
* Restyled by clang-format
* Regenerate zap files
* Address PR comments
* Restyled by clang-format
* Update with PR comments
* Regenerate ZAP files
* Restyled by clang-format
* Reorder struct initialization
* Add comments for OpenValve function
* Restyled by whitespace
* Restyled by clang-format
* Remove trailing semicolon and fix typos
* Modify TimeSync description
* Restyled by clang-format
* Address PR comments
* Use SetAttributeValue to attribute changes
* Address PR comments
* Restyled by whitespace
* Restyled by clang-format
* Add UT for invalida command values and more PR comments
* Restyled by whitespace
* Fix compilation errors in UT
* Add comments linked to issues and description for command faults
---------
Co-authored-by: Restyled.io <commits@restyled.io>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>1 parent fbdbe29 commit 93d430b
30 files changed
Lines changed: 1591 additions & 1406 deletions
File tree
- examples
- all-clusters-app
- all-clusters-common
- linux
- realtek/data_model
- chef/devices
- scripts/tools/zap/tests/outputs/all-clusters-app/app-templates
- src
- app
- clusters/valve-configuration-and-control-server
- tests
- common/templates
- zap-templates/zcl
- zzz_generated/app-common/app-common/zap-generated
- attributes
Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8053 | 8053 | | |
8054 | 8054 | | |
8055 | 8055 | | |
8056 | | - | |
8057 | | - | |
8058 | | - | |
| 8056 | + | |
| 8057 | + | |
| 8058 | + | |
8059 | 8059 | | |
8060 | | - | |
8061 | | - | |
8062 | | - | |
8063 | | - | |
8064 | | - | |
8065 | | - | |
8066 | | - | |
| 8060 | + | |
| 8061 | + | |
| 8062 | + | |
| 8063 | + | |
| 8064 | + | |
| 8065 | + | |
| 8066 | + | |
8067 | 8067 | | |
8068 | 8068 | | |
8069 | 8069 | | |
8070 | 8070 | | |
8071 | | - | |
| 8071 | + | |
8072 | 8072 | | |
8073 | 8073 | | |
8074 | 8074 | | |
| |||
Lines changed: 15 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11751 | 11751 | | |
11752 | 11752 | | |
11753 | 11753 | | |
11754 | | - | |
| 11754 | + | |
11755 | 11755 | | |
11756 | 11756 | | |
11757 | 11757 | | |
| |||
11767 | 11767 | | |
11768 | 11768 | | |
11769 | 11769 | | |
11770 | | - | |
| 11770 | + | |
11771 | 11771 | | |
11772 | 11772 | | |
11773 | 11773 | | |
| |||
11783 | 11783 | | |
11784 | 11784 | | |
11785 | 11785 | | |
11786 | | - | |
| 11786 | + | |
11787 | 11787 | | |
11788 | 11788 | | |
11789 | 11789 | | |
| |||
11815 | 11815 | | |
11816 | 11816 | | |
11817 | 11817 | | |
11818 | | - | |
| 11818 | + | |
11819 | 11819 | | |
11820 | 11820 | | |
11821 | 11821 | | |
| |||
11831 | 11831 | | |
11832 | 11832 | | |
11833 | 11833 | | |
11834 | | - | |
| 11834 | + | |
11835 | 11835 | | |
11836 | 11836 | | |
11837 | 11837 | | |
| |||
11847 | 11847 | | |
11848 | 11848 | | |
11849 | 11849 | | |
11850 | | - | |
| 11850 | + | |
11851 | 11851 | | |
11852 | 11852 | | |
11853 | 11853 | | |
| |||
11863 | 11863 | | |
11864 | 11864 | | |
11865 | 11865 | | |
11866 | | - | |
| 11866 | + | |
11867 | 11867 | | |
11868 | 11868 | | |
11869 | 11869 | | |
| |||
11879 | 11879 | | |
11880 | 11880 | | |
11881 | 11881 | | |
11882 | | - | |
| 11882 | + | |
11883 | 11883 | | |
11884 | 11884 | | |
11885 | | - | |
| 11885 | + | |
11886 | 11886 | | |
11887 | 11887 | | |
11888 | 11888 | | |
| |||
11895 | 11895 | | |
11896 | 11896 | | |
11897 | 11897 | | |
11898 | | - | |
| 11898 | + | |
11899 | 11899 | | |
11900 | 11900 | | |
11901 | | - | |
| 11901 | + | |
11902 | 11902 | | |
11903 | 11903 | | |
11904 | 11904 | | |
| |||
11911 | 11911 | | |
11912 | 11912 | | |
11913 | 11913 | | |
11914 | | - | |
| 11914 | + | |
11915 | 11915 | | |
11916 | 11916 | | |
11917 | | - | |
| 11917 | + | |
11918 | 11918 | | |
11919 | 11919 | | |
11920 | 11920 | | |
| |||
11991 | 11991 | | |
11992 | 11992 | | |
11993 | 11993 | | |
11994 | | - | |
| 11994 | + | |
11995 | 11995 | | |
11996 | 11996 | | |
11997 | | - | |
| 11997 | + | |
11998 | 11998 | | |
11999 | 11999 | | |
12000 | 12000 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8784 | 8784 | | |
8785 | 8785 | | |
8786 | 8786 | | |
8787 | | - | |
| 8787 | + | |
8788 | 8788 | | |
8789 | | - | |
| 8789 | + | |
8790 | 8790 | | |
8791 | | - | |
8792 | | - | |
8793 | | - | |
8794 | | - | |
| 8791 | + | |
| 8792 | + | |
| 8793 | + | |
| 8794 | + | |
8795 | 8795 | | |
8796 | | - | |
| 8796 | + | |
8797 | 8797 | | |
8798 | 8798 | | |
8799 | 8799 | | |
8800 | 8800 | | |
8801 | 8801 | | |
8802 | | - | |
| 8802 | + | |
8803 | 8803 | | |
8804 | 8804 | | |
8805 | 8805 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1951 | 1951 | | |
1952 | 1952 | | |
1953 | 1953 | | |
1954 | | - | |
| 1954 | + | |
1955 | 1955 | | |
1956 | 1956 | | |
1957 | | - | |
1958 | | - | |
| 1957 | + | |
| 1958 | + | |
1959 | 1959 | | |
1960 | 1960 | | |
1961 | 1961 | | |
1962 | 1962 | | |
1963 | | - | |
| 1963 | + | |
1964 | 1964 | | |
1965 | 1965 | | |
1966 | 1966 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
| |||
206 | 209 | | |
207 | 210 | | |
208 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
209 | 215 | | |
210 | 216 | | |
211 | 217 | | |
| |||
Lines changed: 0 additions & 53 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1201 | 1201 | | |
1202 | 1202 | | |
1203 | 1203 | | |
1204 | | - | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
1214 | | - | |
1215 | | - | |
1216 | | - | |
1217 | | - | |
1218 | | - | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
1222 | | - | |
1223 | | - | |
1224 | | - | |
1225 | | - | |
1226 | | - | |
1227 | | - | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
1231 | | - | |
1232 | | - | |
1233 | | - | |
1234 | | - | |
1235 | | - | |
1236 | | - | |
1237 | | - | |
1238 | | - | |
1239 | | - | |
1240 | | - | |
1241 | | - | |
1242 | | - | |
1243 | | - | |
1244 | | - | |
1245 | | - | |
1246 | | - | |
1247 | | - | |
1248 | | - | |
1249 | | - | |
1250 | | - | |
1251 | | - | |
1252 | | - | |
1253 | | - | |
1254 | 1204 | | |
1255 | 1205 | | |
1256 | 1206 | | |
| |||
1399 | 1349 | | |
1400 | 1350 | | |
1401 | 1351 | | |
1402 | | - | |
1403 | | - | |
1404 | | - | |
1405 | 1352 | | |
1406 | 1353 | | |
1407 | 1354 | | |
| |||
0 commit comments