Skip to content

Commit 8856678

Browse files
authored
Add initial IQS to sfr_box (home-assistant#155419)
1 parent 4646929 commit 8856678

File tree

2 files changed

+120
-1
lines changed

2 files changed

+120
-1
lines changed
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
rules:
2+
# Special note, doesn't fall in any of the categories below
3+
# Why can the coordinator state be None? As in, I understand that it can be None if it doesn't support it, but wouldn't these coordinators not be created at all?
4+
5+
## Bronze
6+
config-flow:
7+
status: todo
8+
comment: |
9+
SFRBoxFlowHandler has a classvar _config. This can be dangerous
10+
self._async_abort_entries_match({CONF_HOST: user_input[CONF_HOST]}) can be tested at the first if statement
11+
test-before-configure: done
12+
unique-config-entry: done
13+
config-flow-test-coverage:
14+
status: todo
15+
comment: |
16+
- test_config_flow_skip_auth -> I'd split the happy from the not happy flows
17+
- We should test created mac address
18+
runtime-data: done
19+
test-before-setup: done
20+
appropriate-polling: done
21+
entity-unique-id: done
22+
has-entity-name: done
23+
entity-event-setup:
24+
status: exempt
25+
comment: local_polling without events
26+
dependency-transparency: done
27+
action-setup:
28+
status: exempt
29+
comment: There are no service actions
30+
common-modules: done
31+
docs-high-level-description: done
32+
docs-installation-instructions: done
33+
docs-removal-instructions: done
34+
docs-actions:
35+
status: exempt
36+
comment: There are no service actions
37+
brands: done
38+
39+
## Silver
40+
config-entry-unloading: done
41+
log-when-unavailable: done
42+
entity-unavailable: done
43+
action-exceptions: done
44+
reauthentication-flow: done
45+
parallel-updates: done
46+
test-coverage:
47+
status: todo
48+
comment: |
49+
- 93% on diagnostics / 92% on sensors, need to improve overall coverage
50+
- you can use load_json_object_fixture
51+
- It would be nice to use the snapshot helper as currently it would just throw everything in a list
52+
- We also test the devices in each platform, kinda overkill
53+
- assert not hass.data.get(DOMAIN) not needed
54+
- We should use entity_registry_enabled_by_default instead to enable entities
55+
integration-owner: done
56+
docs-installation-parameters:
57+
status: todo
58+
comment: not yet documented
59+
docs-configuration-parameters:
60+
status: exempt
61+
comment: No options flow
62+
63+
## Gold
64+
entity-translations: done
65+
entity-device-class:
66+
status: todo
67+
comment: |
68+
What does DSL counter count?
69+
What is the state of CRC?
70+
line_status and training and net_infra and mode -> unknown shouldn't be an option and the entity should return None instead
71+
devices:
72+
status: todo
73+
comment: MAC address can be set to the connections
74+
entity-category: done
75+
entity-disabled-by-default: done
76+
discovery:
77+
status: todo
78+
comment: Should be possible
79+
stale-devices: done
80+
diagnostics: done
81+
exception-translations:
82+
status: todo
83+
comment: not yet documented
84+
icon-translations: done
85+
reconfiguration-flow:
86+
status: todo
87+
comment: Need to be able to manually change the IP address
88+
dynamic-devices: done
89+
discovery-update-info:
90+
status: todo
91+
comment: Discovery is not yet implemented
92+
repair-issues: done
93+
docs-use-cases:
94+
status: todo
95+
comment: not yet documented
96+
docs-supported-devices: done
97+
docs-supported-functions: done
98+
docs-data-update:
99+
status: todo
100+
comment: not yet documented
101+
docs-known-limitations:
102+
status: todo
103+
comment: not yet documented
104+
docs-troubleshooting:
105+
status: todo
106+
comment: not yet documented
107+
docs-examples:
108+
status: todo
109+
comment: not yet documented
110+
111+
## Platinum
112+
async-dependency:
113+
status: done
114+
comment: sfrbox-api is asynchronous
115+
inject-websession:
116+
status: done
117+
comment: sfrbox-api uses injected aiohttp websession
118+
strict-typing:
119+
status: done
120+
comment: sfrbox-api is fully typed, and integration uses strict typing

script/hassfest/quality_scale.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,6 @@ class Rule:
857857
"sesame",
858858
"seven_segments",
859859
"seventeentrack",
860-
"sfr_box",
861860
"sharkiq",
862861
"shell_command",
863862
"shodan",

0 commit comments

Comments
 (0)