diff --git a/custom_components/battery_notes/__init__.py b/custom_components/battery_notes/__init__.py index 884bc4c80..a16b1a07b 100644 --- a/custom_components/battery_notes/__init__.py +++ b/custom_components/battery_notes/__init__.py @@ -6,10 +6,9 @@ from __future__ import annotations from homeassistant.config_entries import ConfigEntry -from homeassistant.const import Platform from homeassistant.core import HomeAssistant, callback -from .const import DOMAIN, LOGGER, PLATFORMS +from .const import PLATFORMS async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Set up a config entry.""" diff --git a/custom_components/battery_notes/sensor.py b/custom_components/battery_notes/sensor.py index 463d565bc..1a887a3be 100644 --- a/custom_components/battery_notes/sensor.py +++ b/custom_components/battery_notes/sensor.py @@ -49,6 +49,7 @@ class BatteryNotesSensorEntityDescription( SensorEntityDescription, ): """Describes Battery Notes sensor entity.""" + unique_id_suffix: str typeSensorEntityDescription = BatteryNotesSensorEntityDescription(