mirror of
https://github.com/home-assistant/core.git
synced 2025-08-09 23:55:07 +02:00
Log if target == NULL
This commit is contained in:
@@ -46,6 +46,10 @@ class GoogleVoiceSMSNotificationService(BaseNotificationService):
|
|||||||
|
|
||||||
targets = kwargs.get(ATTR_TARGET)
|
targets = kwargs.get(ATTR_TARGET)
|
||||||
|
|
||||||
|
if not targets:
|
||||||
|
_LOGGER.info('At least 1 target is required')
|
||||||
|
return
|
||||||
|
|
||||||
if not isinstance(targets, list):
|
if not isinstance(targets, list):
|
||||||
targets = [targets]
|
targets = [targets]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user