mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Add hints to get_service in netgear-lte (#86700)
This commit is contained in:
parent
95d0329d6c
commit
8a5a1b810a
@ -1,20 +1,28 @@
|
|||||||
"""Support for Netgear LTE notifications."""
|
"""Support for Netgear LTE notifications."""
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
import eternalegypt
|
import eternalegypt
|
||||||
|
|
||||||
from homeassistant.components.notify import ATTR_TARGET, BaseNotificationService
|
from homeassistant.components.notify import ATTR_TARGET, BaseNotificationService
|
||||||
|
from homeassistant.core import HomeAssistant
|
||||||
|
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||||
|
|
||||||
from . import CONF_NOTIFY, CONF_RECIPIENT, DATA_KEY
|
from . import CONF_NOTIFY, CONF_RECIPIENT, DATA_KEY
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
async def async_get_service(hass, config, discovery_info=None):
|
async def async_get_service(
|
||||||
|
hass: HomeAssistant,
|
||||||
|
config: ConfigType,
|
||||||
|
discovery_info: DiscoveryInfoType | None = None,
|
||||||
|
) -> NetgearNotifyService | None:
|
||||||
"""Get the notification service."""
|
"""Get the notification service."""
|
||||||
if discovery_info is None:
|
if discovery_info is None:
|
||||||
return
|
return None
|
||||||
|
|
||||||
return NetgearNotifyService(hass, discovery_info)
|
return NetgearNotifyService(hass, discovery_info)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user