Ensure service calls are typed [h-i] (#62914)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
7b5a159899
commit
fb272f58fb
14 changed files with 65 additions and 53 deletions
|
@ -28,6 +28,7 @@ from homeassistant.components.notify import (
|
|||
BaseNotificationService,
|
||||
)
|
||||
from homeassistant.const import ATTR_NAME, URL_ROOT
|
||||
from homeassistant.core import ServiceCall
|
||||
from homeassistant.exceptions import HomeAssistantError
|
||||
from homeassistant.helpers import config_validation as cv
|
||||
from homeassistant.util import ensure_unique_string
|
||||
|
@ -405,7 +406,7 @@ class HTML5NotificationService(BaseNotificationService):
|
|||
self.registrations = registrations
|
||||
self.registrations_json_path = json_path
|
||||
|
||||
async def async_dismiss_message(service):
|
||||
async def async_dismiss_message(service: ServiceCall) -> None:
|
||||
"""Handle dismissing notification message service calls."""
|
||||
kwargs = {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue