mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 19:57:03 -04:00
Bump Spin EV Charger to platinum quality scale (#190282)
This commit is contained in:
@@ -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,
|
||||
),
|
||||
)
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
'device_id': <DeviceEntry connections=[('bluetooth', 'AA:BB:CC:DD:EE:FF')]>,
|
||||
'disabled_by': None,
|
||||
'domain': 'binary_sensor',
|
||||
'entity_category': None,
|
||||
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
||||
'entity_id': 'binary_sensor.123456789012_problem',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
|
||||
Reference in New Issue
Block a user