mirror of
https://github.com/home-assistant/core.git
synced 2025-08-12 17:15:19 +02:00
Move imports to top for twilio_call (#29104)
This commit is contained in:
committed by
Paulus Schoutsen
parent
33af72a54f
commit
03fe7cb347
@@ -2,6 +2,7 @@
|
|||||||
import logging
|
import logging
|
||||||
import urllib
|
import urllib
|
||||||
|
|
||||||
|
from twilio.base.exceptions import TwilioRestException
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.notify import (
|
from homeassistant.components.notify import (
|
||||||
@@ -42,7 +43,6 @@ class TwilioCallNotificationService(BaseNotificationService):
|
|||||||
|
|
||||||
def send_message(self, message="", **kwargs):
|
def send_message(self, message="", **kwargs):
|
||||||
"""Call to specified target users."""
|
"""Call to specified target users."""
|
||||||
from twilio.base.exceptions import TwilioRestException
|
|
||||||
|
|
||||||
targets = kwargs.get(ATTR_TARGET)
|
targets = kwargs.get(ATTR_TARGET)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user