Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/notify/twilio_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, twilio_client, from_number):

def send_message(self, message="", **kwargs):
"""Call to specified target users."""
from twilio import TwilioRestException
from twilio.base.exceptions import TwilioRestException

targets = kwargs.get(ATTR_TARGET)

Expand Down
6 changes: 3 additions & 3 deletions homeassistant/components/twilio.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from homeassistant.core import callback
from homeassistant.components.http import HomeAssistantView

REQUIREMENTS = ['twilio==5.7.0']
REQUIREMENTS = ['twilio==6.19.1']

DOMAIN = 'twilio'

Expand Down Expand Up @@ -51,8 +51,8 @@ class TwilioReceiveDataView(HomeAssistantView):
@callback
def post(self, request): # pylint: disable=no-self-use
"""Handle Twilio data post."""
from twilio.twiml import Response
from twilio.twiml import TwiML
hass = request.app['hass']
data = yield from request.post()
hass.bus.async_fire(RECEIVED_DATA, dict(data))
return Response().toxml()
return TwiML().to_xml()
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,7 @@ transmissionrpc==0.11
tuyapy==0.1.3

# homeassistant.components.twilio
twilio==5.7.0
twilio==6.19.1

# homeassistant.components.sensor.uber
uber_rides==0.6.0
Expand Down