Log if target == NULL
This commit is contained in:
parent
28f4283b40
commit
01a743c7d4
1 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,10 @@ class GoogleVoiceSMSNotificationService(BaseNotificationService):
|
|||
|
||||
targets = kwargs.get(ATTR_TARGET)
|
||||
|
||||
if not targets:
|
||||
_LOGGER.info('At least 1 target is required')
|
||||
return
|
||||
|
||||
if not isinstance(targets, list):
|
||||
targets = [targets]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue