diff --git a/homeassistant/components/clicksend_tts/notify.py b/homeassistant/components/clicksend_tts/notify.py index 1bba45a70084..3173dffd583f 100644 --- a/homeassistant/components/clicksend_tts/notify.py +++ b/homeassistant/components/clicksend_tts/notify.py @@ -46,7 +46,7 @@ PLATFORM_SCHEMA = NOTIFY_PLATFORM_SCHEMA.extend( probatio.Required(CONF_USERNAME): cv.string, probatio.Required(probatio.Secret(CONF_API_KEY)): cv.string, probatio.Required(CONF_RECIPIENT): probatio.All( - cv.string, probatio.Match(r"^\+?[1-9]\d{1,14}$") + cv.string, probatio.E164(normalize=False) ), probatio.Optional(CONF_LANGUAGE, default=DEFAULT_LANGUAGE): cv.string, probatio.Optional(CONF_VOICE, default=DEFAULT_VOICE): probatio.In( diff --git a/homeassistant/components/twilio_call/notify.py b/homeassistant/components/twilio_call/notify.py index a1686d1c4c53..17d32dea12f1 100644 --- a/homeassistant/components/twilio_call/notify.py +++ b/homeassistant/components/twilio_call/notify.py @@ -24,7 +24,7 @@ CONF_FROM_NUMBER = "from_number" PLATFORM_SCHEMA = NOTIFY_PLATFORM_SCHEMA.extend( { probatio.Required(CONF_FROM_NUMBER): probatio.All( - cv.string, probatio.Match(r"^\+?[1-9]\d{1,14}$") + cv.string, probatio.E164(normalize=False) ) } )