-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathquality_scale.yaml
More file actions
257 lines (204 loc) · 8.11 KB
/
Copy pathquality_scale.yaml
File metadata and controls
257 lines (204 loc) · 8.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
# Quality Scale Status for SYR Connect Integration
# Custom Integration - Status: Platinum Tier ✅🏆 (Highest Achievable)
rules:
# BRONZE TIER
action-setup:
status: exempt
comment: Integration has no service actions defined (only Button entities)
appropriate-polling:
status: done
comment: Polling interval is configurable (default 60s) via Options Flow
brands:
status: done
comment: Branding assets are included in the repository; brand images are generated by scripts/generate_brand_images.py
common-modules:
status: done
comment: |
- encryption.py for AES encryption
- payload_builder.py for XML payloads
- response_parser.py for XML parsing
- http_client.py for HTTP requests
- helpers.py for DeviceInfo and Entity ID
config-flow-test-coverage:
status: done
comment: Comprehensive tests in tests/test_config_flow.py (25 test cases covering user flow, options, reauth, reconfigure, error handling)
config-flow:
status: done
comment: |
- Config Flow with UI setup implemented
- Options Flow for scan interval available
- Translations provided via translations/*.json (no strings.json required)
- ConfigEntry.data for credentials, ConfigEntry.options for scan interval
dependency-transparency:
status: done
comment: Dependencies declared in manifest.json (pycryptodomex); no hidden runtime deps
docs-actions:
status: exempt
comment: No service actions - only Button entities
docs-high-level-description:
status: done
comment: README.md describes SYR Connect cloud service and devices
docs-installation-instructions:
status: done
comment: README.md contains installation and setup instructions
docs-removal-instructions:
status: done
comment: Removal instructions added to README.md
entity-event-setup:
status: exempt
comment: Integration does not use Event entities
entity-unique-id:
status: done
comment: All entities have unique_id (device_id + sensor_key)
has-entity-name:
status: done
comment: Entities use has_entity_name = True
runtime-data:
status: done
comment: Uses ConfigEntry.runtime_data instead of hass.data
test-before-configure:
status: done
comment: validate_input() tests API connection before creating ConfigEntry
test-before-setup:
status: done
comment: async_config_entry_first_refresh() tests connection, raises ConfigEntryNotReady on error
unique-config-entry:
status: done
comment: _abort_if_unique_id_configured() prevents duplicates
# SILVER TIER
action-exceptions:
status: done
comment: Button.async_press() raises HomeAssistantError on failures
config-entry-unloading:
status: done
comment: async_unload_entry() implemented
docs-configuration-parameters:
status: done
comment: Scan interval described in README.md under Configuration Options
docs-installation-parameters:
status: done
comment: Username and password described in README
entity-unavailable:
status: done
comment: Entities check device['available'] and set unavailable on errors
integration-owner:
status: done
comment: Codeowner @alexhass in manifest.json
log-when-unavailable:
status: done
comment: Coordinator logs warning on device errors, marks as unavailable
parallel-updates:
status: done
comment: PARALLEL_UPDATES = 1 set in sensor.py, binary_sensor.py, button.py, select.py, valve.py
reauthentication-flow:
status: done
comment: Reauth flow implemented, ConfigEntryAuthFailed on login failures
test-coverage:
status: done
comment: |
Comprehensive test suite with 1,300+ test cases:
- tests/test_api_json.py (83 tests)
- tests/test_api_xml.py (30 tests)
- tests/test_binary_sensor.py (38 tests)
- tests/test_button.py (38 tests)
- tests/test_checksum.py (10 tests)
- tests/test_config_flow.py (77 tests)
- tests/test_coordinator.py (45 tests)
- tests/test_diagnostics.py (111 tests)
- tests/test_encryption.py (8 tests)
- tests/test_exceptions.py (6 tests)
- tests/test_helpers.py (116 tests)
- tests/test_http_client.py (16 tests)
- tests/test_init.py (22 tests)
- tests/test_migrations.py (12 tests)
- tests/test_models.py (68 tests)
- tests/test_payload_builder.py (31 tests)
- tests/test_platforms.py (3 tests)
- tests/test_repairs.py (3 tests)
- tests/test_response_parser.py (81 tests)
- tests/test_select.py (133 tests)
- tests/test_sensor.py (376 tests)
- tests/test_switch.py (22 tests)
- tests/test_valve.py (70 tests)
Code coverage tracked via pytest-cov and reported to codecov
# GOLD TIER
devices:
status: done
comment: Integration creates devices with DeviceInfo
diagnostics:
status: done
comment: Diagnostics platform implemented in diagnostics.py
discovery:
status: exempt
comment: Cloud-based integration - no local discovery possible
discovery-update-info:
status: exempt
comment: Cloud-based integration - no network info updates needed
docs-data-update:
status: done
comment: README.md section "How Data is Updated" describes polling mechanism
docs-examples:
status: done
comment: README.md includes 5+ automation examples (alerts, reports, monitoring)
docs-known-limitations:
status: done
comment: README.md section "Known Limitations" lists all constraints
docs-supported-devices:
status: done
comment: README.md section "Supported Devices" lists compatible models
docs-supported-functions:
status: done
comment: README.md section "Supported Functionality" describes all features
docs-troubleshooting:
status: done
comment: README.md extended troubleshooting with diagnostics, auth, connectivity
docs-use-cases:
status: done
comment: README.md section "Use Cases & Examples" with practical scenarios
dynamic-devices:
status: done
comment: Devices are discovered dynamically on each coordinator update
entity-category:
status: done
comment: EntityCategory.DIAGNOSTIC for technical sensors (Serial, MAC, IP, Firmware, Config)
entity-device-class:
status: done
comment: Device classes set for Volume, Consumption, Duration
entity-disabled-by-default:
status: done
comment: 63 sensors disabled by default (14 basic sensors: cycle metrics, regeneration settings, advanced config; 49 leak protection profile sensors)
entity-translations:
status: done
comment: Translations available in 8 languages: de.json, en.json, es.json, fr.json, it.json, nl.json, pl.json, pt.json
exception-translations:
status: done
comment: Custom exception classes (CannotConnect, InvalidAuth) with translatable error messages in translations/*.json
icon-translations:
status: done
comment: Dynamic state-based icons for alarm, regeneration, salt stock, and remaining capacity sensors
reconfiguration-flow:
status: done
comment: Reconfigure flow implemented with async_step_reconfigure
repair-issues:
status: done
comment: Repair issues created for offline devices with translations
stale-devices:
status: done
comment: Devices removed automatically when no longer in API response
# PLATINUM TIER
async-dependency:
status: done
comment: All dependencies are async - aiohttp for HTTP, defusedxml for secure XML parsing, pycryptodomex for crypto
inject-websession:
status: done
comment: Integration uses async_get_clientsession and passes aiohttp session to all API clients
strict-typing:
status: done
comment: Extensive type hints; mypy config added; py.typed marker file present for PEP 561 compliance
# Summary
# Bronze: 19/19 completed (100%) ✅ (2 exempt rules)
# Silver: 10/10 completed (100%) ✅
# Gold: 20/20 completed (100%) ✅🥇 (2 exempt rules)
# Platinum: 3/3 completed (100%) ✅🏆
# Total Platinum Tier Rules: 3 (3 done, 0 exempt, 0 pending)
# Rating: Custom Integration - Platinum Tier achieved! 🏆✨🎉