Skip to content

Commit ad24ae0

Browse files
committed
Inital commit for Jewish Calendar quality scale
1 parent a1ca0a1 commit ad24ae0

File tree

3 files changed

+95
-8
lines changed

3 files changed

+95
-8
lines changed

homeassistant/components/jewish_calendar/config_flow.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@
88

99
import voluptuous as vol
1010

11-
from homeassistant.config_entries import (
12-
ConfigEntry,
13-
ConfigFlow,
14-
ConfigFlowResult,
15-
OptionsFlow,
16-
)
11+
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult, OptionsFlow
1712
from homeassistant.const import (
1813
CONF_ELEVATION,
1914
CONF_LANGUAGE,
@@ -42,6 +37,7 @@
4237
DEFAULT_NAME,
4338
DOMAIN,
4439
)
40+
from .entity import JewishCalendarConfigEntry
4541

4642
LANGUAGE = [
4743
SelectOptionDict(value="hebrew", label="Hebrew"),
@@ -92,7 +88,7 @@ class JewishCalendarConfigFlow(ConfigFlow, domain=DOMAIN):
9288
@staticmethod
9389
@callback
9490
def async_get_options_flow(
95-
config_entry: ConfigEntry,
91+
config_entry: JewishCalendarConfigEntry,
9692
) -> JewishCalendarOptionsFlowHandler:
9793
"""Get the options flow for this handler."""
9894
return JewishCalendarOptionsFlowHandler()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
rules:
2+
# Bronze
3+
action-setup: done
4+
appropriate-polling: todo
5+
brands: done
6+
common-modules: done
7+
config-flow-test-coverage: done
8+
config-flow: done
9+
dependency-transparency: done
10+
docs-actions: done
11+
docs-high-level-description: done
12+
docs-installation-instructions: done
13+
docs-removal-instructions: done
14+
entity-event-setup:
15+
status: exempt
16+
comment: Entities of this integration does not explicitly subscribe to events.
17+
entity-unique-id: done
18+
has-entity-name: done
19+
runtime-data: done
20+
test-before-configure:
21+
status: exempt
22+
comment: Local calculation does not require configuration.
23+
test-before-setup:
24+
status: exempt
25+
comment: Local calculation does not require setup.
26+
unique-config-entry: done
27+
28+
# Silver
29+
action-exceptions: todo
30+
config-entry-unloading: done
31+
docs-configuration-parameters: done
32+
docs-installation-parameters: done
33+
entity-unavailable:
34+
status: exempt
35+
comment: This integration cannot be unavailable since it's a local calculation.
36+
integration-owner: done
37+
log-when-unavailable:
38+
status: exempt
39+
comment: This integration cannot be unavailable since it's a local calculation.
40+
parallel-updates: todo
41+
reauthentication-flow:
42+
status: exempt
43+
comment: This integration does not require reauthentication, since it is a local calculation.
44+
test-coverage: done
45+
46+
# Gold
47+
devices:
48+
status: exempt
49+
comment: This integration does not represent physical devices.
50+
diagnostics: todo
51+
discovery-update-info:
52+
status: exempt
53+
comment: This is a local calculation and does not require discovery.
54+
discovery:
55+
status: exempt
56+
comment: This is a local calculation and does not require discovery.
57+
docs-data-update: todo
58+
docs-examples: todo
59+
docs-known-limitations:
60+
status: exempt
61+
comment: No known limitations.
62+
docs-supported-devices:
63+
status: exempt
64+
comment: This integration does not support physical devices.
65+
docs-supported-functions: done
66+
docs-troubleshooting:
67+
status: exempt
68+
comment: There are no more detailed troubleshooting instructions available.
69+
docs-use-cases: todo
70+
dynamic-devices:
71+
status: exempt
72+
comment: This integration does not have devices.
73+
entity-category: done
74+
entity-device-class: done
75+
entity-disabled-by-default: done
76+
entity-translations: todo
77+
exception-translations: todo
78+
icon-translations: todo
79+
reconfiguration-flow: done
80+
repair-issues:
81+
status: exempt
82+
comment: There are no issues which can be repaired.
83+
stale-devices:
84+
status: exempt
85+
comment: This integration does not have devices.
86+
87+
# Platinum
88+
async-dependency: todo
89+
inject-websession:
90+
status: exempt
91+
comment: This integration does not require a web session.
92+
strict-typing: done

script/hassfest/quality_scale.py

-1
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,6 @@ class Rule:
535535
"itunes",
536536
"izone",
537537
"jellyfin",
538-
"jewish_calendar",
539538
"joaoapps_join",
540539
"juicenet",
541540
"justnimbus",

0 commit comments

Comments
 (0)