Fix mysensors notify platform (#47517)
This commit is contained in:
parent
e9052233a6
commit
1600207f5c
4 changed files with 42 additions and 15 deletions
|
@ -5,6 +5,9 @@ from homeassistant.components.notify import ATTR_TARGET, DOMAIN, BaseNotificatio
|
|||
|
||||
async def async_get_service(hass, config, discovery_info=None):
|
||||
"""Get the MySensors notification service."""
|
||||
if not discovery_info:
|
||||
return None
|
||||
|
||||
new_devices = mysensors.setup_mysensors_platform(
|
||||
hass, DOMAIN, discovery_info, MySensorsNotificationDevice
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue