From 8f0dec57fc0aff78ff5819d76ad01396310ac2ba Mon Sep 17 00:00:00 2001 From: "Dr.Blank" <64108942+Dr-Blank@users.noreply.github.com> Date: Wed, 4 Nov 2026 18:09:36 +0530 Subject: [PATCH] Bump Spin EV Charger to platinum quality scale (#190282) --- .../exicom_spin_ble/binary_sensor.py | 2 ++ .../components/exicom_spin_ble/manifest.json | 2 +- .../exicom_spin_ble/quality_scale.yaml | 22 ++++++++----------- .../snapshots/test_binary_sensor.ambr | 2 +- 4 files changed, 13 insertions(+), 15 deletions(-) diff --git a/homeassistant/components/exicom_spin_ble/binary_sensor.py b/homeassistant/components/exicom_spin_ble/binary_sensor.py index 0b1c56632730..89592b92f87b 100644 --- a/homeassistant/components/exicom_spin_ble/binary_sensor.py +++ b/homeassistant/components/exicom_spin_ble/binary_sensor.py @@ -11,6 +11,7 @@ from homeassistant.components.binary_sensor import ( BinarySensorEntity, BinarySensorEntityDescription, ) +from homeassistant.const import EntityCategory from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback @@ -36,6 +37,7 @@ BINARY_SENSORS: tuple[SpinEvBinarySensorEntityDescription, ...] = ( SpinEvBinarySensorEntityDescription( key="problem", device_class=BinarySensorDeviceClass.PROBLEM, + entity_category=EntityCategory.DIAGNOSTIC, value_fn=lambda status: status.has_alarms, ), ) diff --git a/homeassistant/components/exicom_spin_ble/manifest.json b/homeassistant/components/exicom_spin_ble/manifest.json index 4c8c5f1e5f63..4cf64882f6ff 100644 --- a/homeassistant/components/exicom_spin_ble/manifest.json +++ b/homeassistant/components/exicom_spin_ble/manifest.json @@ -16,6 +16,6 @@ "integration_type": "device", "iot_class": "local_polling", "loggers": ["spinev_ble"], - "quality_scale": "bronze", + "quality_scale": "platinum", "requirements": ["spinev-ble[bleak]==0.5.0"] } diff --git a/homeassistant/components/exicom_spin_ble/quality_scale.yaml b/homeassistant/components/exicom_spin_ble/quality_scale.yaml index 481373eab921..81d5060e36ff 100644 --- a/homeassistant/components/exicom_spin_ble/quality_scale.yaml +++ b/homeassistant/components/exicom_spin_ble/quality_scale.yaml @@ -35,9 +35,7 @@ rules: action-exceptions: done config-entry-unloading: done docs-configuration-parameters: done - docs-installation-parameters: - status: exempt - comment: Setup is discovery driven and takes no parameters. + docs-installation-parameters: done entity-unavailable: done integration-owner: done log-when-unavailable: done @@ -55,21 +53,19 @@ rules: status: exempt comment: | The Bluetooth address is the unique ID and does not change, and the - charger advertises nothing else that setup stores. + serial that setup also stores is fixed to the charger. discovery: done - docs-data-update: todo - docs-examples: todo + docs-data-update: done + docs-examples: done docs-known-limitations: done docs-supported-devices: done - docs-supported-functions: todo + docs-supported-functions: done docs-troubleshooting: done - docs-use-cases: todo + docs-use-cases: done dynamic-devices: status: exempt comment: A config entry is one charger and never gains child devices. - entity-category: - status: exempt - comment: Every entity is primary state rather than configuration or diagnostics. + entity-category: done entity-device-class: done entity-disabled-by-default: status: exempt @@ -80,8 +76,8 @@ rules: reconfiguration-flow: status: exempt comment: | - The entry stores only the Bluetooth address, which is the unique ID and - cannot be reconfigured. + The entry stores only the Bluetooth address, which is the unique ID, and + the serial, which is fixed to the charger. Neither can be reconfigured. repair-issues: status: exempt comment: Nothing the integration detects needs user repair. diff --git a/tests/components/exicom_spin_ble/snapshots/test_binary_sensor.ambr b/tests/components/exicom_spin_ble/snapshots/test_binary_sensor.ambr index 6a51afeabe84..9e8ac457974a 100644 --- a/tests/components/exicom_spin_ble/snapshots/test_binary_sensor.ambr +++ b/tests/components/exicom_spin_ble/snapshots/test_binary_sensor.ambr @@ -63,7 +63,7 @@ 'device_id': , 'disabled_by': None, 'domain': 'binary_sensor', - 'entity_category': None, + 'entity_category': , 'entity_id': 'binary_sensor.123456789012_problem', 'has_entity_name': True, 'hidden_by': None,