Skip to content
80 changes: 80 additions & 0 deletions homeassistant/components/ness_alarm/quality_scale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
rules:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

async_at_started should be wrapped in entry.async_on_unload

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we actually iterate twice over all the subentries in binary sensor setup?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently the binary sensor is always initalized with False, should that be None as we don't know the state yet?

# Bronze
action-setup: done
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sidenote, I am wondering what the best way is to make these services nice, as they currently pick the first entry. Would it make sense to either

  1. Ask for config entry id
  2. Make them an entity service?

(not a blocker for this, but I think just picking the first one is bad)

appropriate-polling: done
brands: done
common-modules: done
config-flow: done
config-flow-test-coverage: done
dependency-transparency: done
docs-actions: done
docs-high-level-description: done
docs-installation-instructions: done
docs-removal-instructions: done
entity-event-setup: done
entity-unique-id: done
has-entity-name: done
Comment thread
Poshy163 marked this conversation as resolved.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
has-entity-name: done
has-entity-name: todo

runtime-data: done
test-before-configure: done
test-before-setup: done
unique-config-entry: done

# Silver
action-exceptions:
status: todo
comment: |
Alarm actions (arm/disarm/trigger) currently call client methods directly
without integration-level exception handling.
config-entry-unloading: done
docs-configuration-parameters: todo
docs-installation-parameters: todo
entity-unavailable:
status: todo
comment: Binary sensor initial state should be None (unknown) instead of False.
integration-owner: done
log-when-unavailable: todo
parallel-updates: todo
reauthentication-flow: todo
test-coverage:
status: todo
comment: |
Switch from MockClient to proper AsyncMock.
More tests in test_init.py should use mock_config_entry fixture.

# Gold
devices:
status: done
comment: |
Binary sensors linked to main device via via_device.
Consider improving services to not just pick the first config entry.
diagnostics: todo
discovery-update-info: todo
discovery: todo
docs-data-update: todo
docs-examples: todo
docs-known-limitations: todo
docs-supported-devices: todo
docs-supported-functions: todo
docs-troubleshooting: todo
docs-use-cases: todo
dynamic-devices: todo
entity-category:
status: exempt
comment: No entities need a non-default category.
entity-device-class: done
entity-disabled-by-default: todo
entity-translations:
status: exempt
comment: Entities use device name as entity name.
exception-translations: done
icon-translations:
status: exempt
comment: No entity icons are used.
reconfiguration-flow: todo
repair-issues: done
stale-devices: todo

# Platinum
async-dependency: todo
inject-websession: todo
strict-typing: todo
1 change: 0 additions & 1 deletion script/hassfest/quality_scale.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,6 @@ class Rule:
"nasweb",
"neato",
"nederlandse_spoorwegen",
"ness_alarm",
"netatmo",
"netdata",
"netgear",
Expand Down
Loading