diff --git a/homeassistant/components/metoffice/manifest.json b/homeassistant/components/metoffice/manifest.json index ae4b898576d4..5d7299e29a97 100644 --- a/homeassistant/components/metoffice/manifest.json +++ b/homeassistant/components/metoffice/manifest.json @@ -7,5 +7,6 @@ "integration_type": "service", "iot_class": "cloud_polling", "loggers": ["datapoint"], + "quality_scale": "bronze", "requirements": ["datapoint==0.12.1"] } diff --git a/homeassistant/components/metoffice/quality_scale.yaml b/homeassistant/components/metoffice/quality_scale.yaml new file mode 100644 index 000000000000..04e68ec8fbe5 --- /dev/null +++ b/homeassistant/components/metoffice/quality_scale.yaml @@ -0,0 +1,84 @@ +rules: + # Bronze + action-setup: + status: exempt + comment: This integration does not have any service actions. + appropriate-polling: done + brands: done + common-modules: done + config-flow-test-coverage: done + config-flow: done + dependency-transparency: done + docs-actions: + status: exempt + comment: This integration does not have any service actions to document. + docs-conditions: + status: exempt + comment: This integration does not have any conditions. + docs-high-level-description: done + docs-installation-instructions: done + docs-removal-instructions: done + docs-triggers: + status: exempt + comment: This integration does not have any triggers. + entity-event-setup: + status: exempt + comment: Weather entities do not require event subscriptions. + entity-unique-id: done + has-entity-name: done + runtime-data: done + test-before-configure: done + test-before-setup: done + unique-config-entry: done + + # Silver + action-exceptions: + status: exempt + comment: Integration does not have any service actions. + config-entry-unloading: done + docs-configuration-parameters: + status: exempt + comment: This integration does not have any options configuration parameters. + docs-installation-parameters: done + entity-unavailable: done + integration-owner: done + log-when-unavailable: todo + parallel-updates: todo + reauthentication-flow: done + test-coverage: todo + + # Gold + devices: done + diagnostics: todo + discovery-update-info: + status: exempt + comment: Integration does not support discovery. + discovery: + status: exempt + comment: Weather stations cannot be automatically discovered. + docs-data-update: done + docs-examples: todo + docs-known-limitations: done + docs-supported-devices: + status: exempt + comment: This integration does not integrate physical devices. + docs-supported-functions: done + docs-troubleshooting: todo + docs-use-cases: todo + dynamic-devices: + status: exempt + comment: Single weather entity per config entry, no dynamic device addition. + entity-category: done + entity-device-class: done + entity-disabled-by-default: done + entity-translations: todo + exception-translations: todo + icon-translations: todo + reconfiguration-flow: todo + repair-issues: todo + stale-devices: todo + + # Platinum + async-dependency: todo + inject-websession: todo + strict-typing: todo diff --git a/homeassistant/components/metoffice/strings.json b/homeassistant/components/metoffice/strings.json index a94d06c461b8..cabccaf37831 100644 --- a/homeassistant/components/metoffice/strings.json +++ b/homeassistant/components/metoffice/strings.json @@ -13,6 +13,9 @@ "data": { "api_key": "[%key:common::config_flow::data::api_key%]" }, + "data_description": { + "api_key": "[%key:component::metoffice::config::step::user::data_description::api_key%]" + }, "description": "Please re-enter your DataHub API key. If you are still using an old Datapoint API key, you need to sign up for DataHub API now, see [documentation]({docs_url}) for details.", "title": "Reauthenticate with DataHub API" }, @@ -22,6 +25,11 @@ "latitude": "[%key:common::config_flow::data::latitude%]", "longitude": "[%key:common::config_flow::data::longitude%]" }, + "data_description": { + "api_key": "Met Office DataHub API key for the Site Specific Global Spot API.", + "latitude": "The latitude of a location for which to request a weather forecast.", + "longitude": "The longitude of a location for which to request a weather forecast." + }, "title": "Connect to the UK Met Office" } } diff --git a/script/hassfest/quality_scale.py b/script/hassfest/quality_scale.py index 68f8da759e7b..1eaf91a2652c 100644 --- a/script/hassfest/quality_scale.py +++ b/script/hassfest/quality_scale.py @@ -571,7 +571,6 @@ INTEGRATIONS_WITHOUT_QUALITY_SCALE_FILE = [ "meteo_france", "meteoalarm", "meteoclimatic", - "metoffice", "mfi", "microbees", "microsoft", @@ -1512,7 +1511,6 @@ INTEGRATIONS_WITHOUT_SCALE = [ "meteo_france", "meteoalarm", "meteoclimatic", - "metoffice", "mfi", "microbees", "microsoft",