diff --git a/homeassistant/components/twilio.py b/homeassistant/components/twilio.py index 9f9767e4675..b32f9ee8efc 100644 --- a/homeassistant/components/twilio.py +++ b/homeassistant/components/twilio.py @@ -34,9 +34,9 @@ CONFIG_SCHEMA = vol.Schema({ def setup(hass, config): """Set up the Twilio component.""" - from twilio.rest import TwilioRestClient + from twilio.rest import Client conf = config[DOMAIN] - hass.data[DATA_TWILIO] = TwilioRestClient( + hass.data[DATA_TWILIO] = Client( conf.get(CONF_ACCOUNT_SID), conf.get(CONF_AUTH_TOKEN)) hass.http.register_view(TwilioReceiveDataView()) return True