Return None from config entry methods in OKOK Scale (#187735)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
G Johansson
2026-10-21 10:29:43 +03:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 5698fb0325
commit 1a1770efbb
@@ -26,7 +26,7 @@ _LOGGER = logging.getLogger(__name__)
type OKOKScaleConfigEntry = ConfigEntry[ActiveBluetoothProcessorCoordinator]
async def async_setup_entry(hass: HomeAssistant, entry: OKOKScaleConfigEntry) -> bool:
async def async_setup_entry(hass: HomeAssistant, entry: OKOKScaleConfigEntry) -> None:
"""Set up OKOK Scale device from a config entry."""
address = entry.unique_id
assert address is not None
@@ -89,9 +89,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: OKOKScaleConfigEntry) ->
# Only start after all platforms have had a chance to subscribe
entry.async_on_unload(coordinator.async_start())
return True
async def async_unload_entry(hass: HomeAssistant, entry: OKOKScaleConfigEntry) -> bool:
async def async_unload_entry(hass: HomeAssistant, entry: OKOKScaleConfigEntry) -> None:
"""Unload a config entry."""
return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
await hass.config_entries.async_unload_platforms_or_raise(entry, PLATFORMS)