Add quality scale to Sensibo (#134296)

pull/134526/head
G Johansson 2025-01-03 10:23:25 +01:00 committed by GitHub
parent ee01289ee8
commit 46824a2a53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 94 additions and 4 deletions

View File

@ -30,12 +30,12 @@ async def async_setup_entry(hass: HomeAssistant, entry: SensiboConfigEntry) -> b
return True
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
async def async_unload_entry(hass: HomeAssistant, entry: SensiboConfigEntry) -> bool:
"""Unload Sensibo config entry."""
return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
async def async_migrate_entry(hass: HomeAssistant, entry: SensiboConfigEntry) -> bool:
"""Migrate old entry."""
# Change entry unique id from api_key to username
if entry.version == 1:
@ -57,7 +57,7 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
async def async_remove_config_entry_device(
hass: HomeAssistant, entry: ConfigEntry, device: DeviceEntry
hass: HomeAssistant, entry: SensiboConfigEntry, device: DeviceEntry
) -> bool:
"""Remove Sensibo config entry from a device."""
entity_registry = er.async_get(hass)

View File

@ -0,0 +1,91 @@
rules:
# Bronze
config-flow:
status: todo
comment: |
Data descriptions. Expand errors strings (no_devices,no_username etc.)
test-before-configure: done
unique-config-entry: done
config-flow-test-coverage:
status: todo
comment: |
Refresh docstrings, example test_form, add test unique id, end in entry or abort
runtime-data: done
test-before-setup: done
appropriate-polling: done
entity-unique-id: done
has-entity-name: done
entity-event-setup:
status: exempt
comment: |
Entities doesn't subscribe to events.
dependency-transparency: done
action-setup:
status: exempt
comment: |
No integrations services.
common-modules: done
docs-high-level-description: todo
docs-installation-instructions: done
docs-removal-instructions: todo
docs-actions: done
brands: done
# Silver
config-entry-unloading: done
log-when-unavailable: done
entity-unavailable:
status: done
comment: |
Move to base entity for common handling
action-exceptions: done
reauthentication-flow: done
parallel-updates: done
test-coverage:
status: done
comment: |
Tests are very complex and needs a rewrite for future additions
integration-owner: done
docs-installation-parameters:
status: todo
comment: configuration_basic
docs-configuration-parameters:
status: exempt
comment: |
This integration has no options flow.
# Gold
entity-translations: done
entity-device-class: done
devices: done
entity-category: done
entity-disabled-by-default: done
discovery: done
stale-devices: todo
diagnostics:
status: done
comment: |
Change to only use redact once
exception-translations: done
icon-translations: done
reconfiguration-flow: done
dynamic-devices: todo
discovery-update-info:
status: exempt
comment: |
No local network connection, cloud based.
repair-issues:
status: exempt
comment: |
This integration doesn't have any cases where raising an issue is needed.
docs-use-cases: todo
docs-supported-devices: todo
docs-supported-functions: todo
docs-data-update: todo
docs-known-limitations: todo
docs-troubleshooting: todo
docs-examples: todo
# Platinum
async-dependency: done
inject-websession: done
strict-typing: done

View File

@ -893,7 +893,6 @@ INTEGRATIONS_WITHOUT_QUALITY_SCALE_FILE = [
"season",
"sendgrid",
"sense",
"sensibo",
"sensirion_ble",
"sensorpro",
"sensorpush",