Ensure service calls are typed [h-i] (#62914)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2021-12-28 14:19:14 +01:00 committed by GitHub
parent 7b5a159899
commit fb272f58fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 65 additions and 53 deletions

View file

@ -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 = {}