-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Record Analytics Insights quality scale #133571
Conversation
config-entry-unloading: done | ||
docs-configuration-parameters: todo | ||
docs-installation-parameters: todo | ||
entity-unavailable: done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would add a comment here, that it's handled through coordinator, as there is nothing that sets it explicitly
I also added an exception for the reconfigure flow because we solely store data in the options, and I don't think 2 flows to do the same thing make sense here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potato/potato, but those are done
for me
Co-authored-by: Josef Zweck <[email protected]>
Co-authored-by: Josef Zweck <[email protected]>
Proposed change
Record Analytics Insights quality scale
Bronze
config-flow
- Integration needs to be able to be set up via the UIdata_description
to give context to fieldsConfigEntry.data
andConfigEntry.options
correctlytest-before-configure
- Test a connection in the config flowcore/homeassistant/components/analytics_insights/config_flow.py
Lines 79 to 85 in 245d8ff
unique-config-entry
- Don't allow the same device or service to be able to be set up twicecore/homeassistant/components/analytics_insights/manifest.json
Line 11 in 201b8d9
config-flow-test-coverage
- Full test coverage for the config flowruntime-data
- Use ConfigEntry.runtime_data to store runtime datacore/homeassistant/components/analytics_insights/__init__.py
Lines 25 to 35 in 44049c3
test-before-setup
- Check during integration initialization if we are able to set it up correctlycore/homeassistant/components/analytics_insights/__init__.py
Lines 39 to 42 in 44049c3
appropriate-polling
- If it's a polling integration, set an appropriate polling intervalcore/homeassistant/components/analytics_insights/coordinator.py
Line 56 in a95c232
entity-unique-id
- Entities have a unique IDcore/homeassistant/components/analytics_insights/sensor.py
Line 156 in a95c232
has-entity-name
- Entities use has_entity_name = Truecore/homeassistant/components/analytics_insights/sensor.py
Line 143 in a95c232
entity-event-setup
- Entities event setupdependency-transparency
- Dependency transparencyhttps://github.com/joostlek/python-homeassistant-analytics
action-setup
- Service actions are registered in async_setupcommon-modules
- Place common patterns in common modulesCoordinator -> coordinator.py
docs-high-level-description
- The documentation includes a high-level description of the integration brand, product, or servicedocs-installation-instructions
- The documentation provides step-by-step installation instructions for the integration, including, if needed, prerequisitesdocs-removal-instructions
- The documentation provides removal instructionsdocs-actions
- The documentation describes the provided service actions that can be usedbrands
- Has branding assets available for the integrationWe have nice icon
Silver
config-entry-unloading
- Support config entry unloadingcore/homeassistant/components/analytics_insights/__init__.py
Lines 63 to 67 in 44049c3
log-when-unavailable
- If internet/device/service is unavailable, log once when unavailable and once when back connectedCoordinator
entity-unavailable
- Mark entity unavailable if appropriateCoordinator
action-exceptions
- Service actions raise exceptions when encountering failuresreauthentication-flow
- Reauthentication flowparallel-updates
- Set Parallel updatestest-coverage
- Above 95% test coverage for all integration modulesintegration-owner
- Has an integration ownerIt'sa me
docs-installation-parameters
- The documentation describes all integration installation parametersdocs-configuration-parameters
- The documentation describes all integration configuration optionsGold
entity-translations
- Entities have translated namescore/homeassistant/components/analytics_insights/strings.json
Lines 47 to 59 in a95c232
entity-device-class
- Entities use device classes where possibledevices
- The integration creates devicescore/homeassistant/components/analytics_insights/sensor.py
Lines 157 to 160 in a95c232
entity-category
- Entities are assigned an appropriate EntityCategorycore/homeassistant/components/analytics_insights/sensor.py
Line 144 in a95c232
entity-disabled-by-default
- Integration disables less popular (or noisy) entitiescore/homeassistant/components/analytics_insights/sensor.py
Lines 74 to 91 in a95c232
discovery
- Can be discoveredstale-devices
- Clean up stale devicesdiagnostics
- Implements diagnosticsexception-translations
- Exception messages are translatableicon-translations
- Icon translationscore/homeassistant/components/analytics_insights/icons.json
Lines 1 to 18 in 3184951
reconfiguration-flow
- Integrations should have a reconfigure flowdynamic-devices
- Devices added after integration setupdiscovery-update-info
- Integration uses discovery info to update network informationrepair-issues
- Repair issues and repair flows are used when user intervention is neededdocs-use-cases
- The documentation describes use cases to illustrate how this integration can be useddocs-supported-devices
- The documentation describes known supported / unsupported devicesdocs-supported-functions
- The documentation describes the supported functionality, including entities, and platformsdocs-data-update
- The documentation describes how data is updateddocs-known-limitations
- The documentation describes known limitations of the integration (not to be confused with bugs)docs-troubleshooting
- The documentation provides troubleshooting informationdocs-examples
- The documentation provides automation examples the user can use.Platinum
async-dependency
- Dependency is asynccore/homeassistant/components/analytics_insights/__init__.py
Line 40 in 44049c3
inject-websession
- The integration dependency supports passing in a websessioncore/homeassistant/components/analytics_insights/__init__.py
Line 37 in 44049c3
strict-typing
- Strict typingcore/.strict-typing
Line 76 in bb2d027
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: