mirror of
https://github.com/home-assistant/core.git
synced 2025-11-10 19:40:11 +00:00
Complete some incomplete type hints in helpers (#25953)
This commit is contained in:
committed by
Paulus Schoutsen
parent
3525728abc
commit
aa508b5106
@@ -2,9 +2,10 @@
|
||||
from functools import partial
|
||||
|
||||
from homeassistant import config_entries
|
||||
from .typing import HomeAssistantType
|
||||
|
||||
|
||||
# mypy: allow-incomplete-defs, allow-untyped-defs
|
||||
# mypy: allow-untyped-defs
|
||||
|
||||
|
||||
def register_discovery_flow(domain, title, discovery_function, connection_class):
|
||||
@@ -130,7 +131,9 @@ class WebhookFlowHandler(config_entries.ConfigFlow):
|
||||
)
|
||||
|
||||
|
||||
async def webhook_async_remove_entry(hass, entry) -> None:
|
||||
async def webhook_async_remove_entry(
|
||||
hass: HomeAssistantType, entry: config_entries.ConfigEntry
|
||||
) -> None:
|
||||
"""Remove a webhook config entry."""
|
||||
if not entry.data.get("cloudhook") or "cloud" not in hass.config.components:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user