Support to use Whatsapp numbers (fixes ##28065) (#28078)
This commit is contained in:
parent
77d55a3b15
commit
acee87bef6
7 changed files with 13 additions and 16 deletions
|
@ -3,15 +3,14 @@ import logging
|
|||
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.twilio import DATA_TWILIO
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
from homeassistant.components.notify import (
|
||||
ATTR_DATA,
|
||||
ATTR_TARGET,
|
||||
PLATFORM_SCHEMA,
|
||||
BaseNotificationService,
|
||||
ATTR_DATA,
|
||||
)
|
||||
from homeassistant.components.twilio import DATA_TWILIO
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -26,6 +25,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
|||
r"^\+?[1-9]\d{1,14}$|"
|
||||
r"^(?=.{1,11}$)[a-zA-Z0-9\s]*"
|
||||
r"[a-zA-Z][a-zA-Z0-9\s]*$"
|
||||
r"^(?:[a-zA-Z]+)\:?\+?[1-9]\d{1,14}$|"
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue