Add websocket type hints in components (#80654)
* Add websocket type hints in components * Adjust * Apply suggestion Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
This commit is contained in:
parent
ae7eb9cef9
commit
2c43606922
16 changed files with 116 additions and 40 deletions
|
@ -57,7 +57,11 @@ def _ensure_webhook_access(func):
|
|||
vol.Required("confirm_id"): str,
|
||||
}
|
||||
)
|
||||
def handle_push_notification_confirm(hass, connection, msg):
|
||||
def handle_push_notification_confirm(
|
||||
hass: HomeAssistant,
|
||||
connection: websocket_api.ActiveConnection,
|
||||
msg: dict[str, Any],
|
||||
) -> None:
|
||||
"""Confirm receipt of a push notification."""
|
||||
channel: PushChannel | None = hass.data[DOMAIN][DATA_PUSH_CHANNEL].get(
|
||||
msg["webhook_id"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue