mirror of
https://github.com/home-assistant/core.git
synced 2026-12-04 12:50:45 -04:00
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:
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)
|
||||
|
||||
Reference in New Issue
Block a user