Commit 22096b4
Fix medium code quality issues: RGB validation, type annotations (#557)
- Add RGB tuple length validation in _clamp_rgb_tuple (ValueError if
not exactly 3 elements)
- Fix name_from_value return type: str -> str | None
- Fix device_ranges type annotation: dict[range] -> dict[str, tuple]
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent b897965 commit 22096b4
File tree
3 files changed
+4
-2
lines changed- custom_components/dreo/pydreo
3 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
0 commit comments