mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Adjust config_entry UpdateListenerType signature (#65410)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
81ad56b8ad
commit
494ef2f9b2
@ -155,7 +155,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
return True
|
||||
|
||||
|
||||
async def _update_listener(hass: HomeAssistant, entry: ConfigEntry):
|
||||
async def _update_listener(hass: HomeAssistant, entry: ConfigEntry) -> None:
|
||||
"""Handle options update."""
|
||||
_LOGGER.debug("AlarmDecoder options updated: %s", entry.as_dict()["options"])
|
||||
await hass.config_entries.async_reload(entry.entry_id)
|
||||
|
@ -2,7 +2,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
from collections.abc import Callable, Iterable, Mapping
|
||||
from collections.abc import Awaitable, Callable, Iterable, Mapping
|
||||
from contextvars import ContextVar
|
||||
import dataclasses
|
||||
from enum import Enum
|
||||
@ -159,7 +159,7 @@ class OperationNotAllowed(ConfigError):
|
||||
"""Raised when a config entry operation is not allowed."""
|
||||
|
||||
|
||||
UpdateListenerType = Callable[[HomeAssistant, "ConfigEntry"], Any]
|
||||
UpdateListenerType = Callable[[HomeAssistant, "ConfigEntry"], Awaitable[None]]
|
||||
|
||||
|
||||
class ConfigEntry:
|
||||
|
Loading…
x
Reference in New Issue
Block a user