From a0d4595f78fb6d55b8ccaa3596b6c0aa8375515e Mon Sep 17 00:00:00 2001 From: Rohan Kapoor Date: Sat, 27 Oct 2018 12:36:47 -0700 Subject: [PATCH] Switch to using Client from twilio.rest rather than the deleted TwilioRestClient (#17885) --- homeassistant/components/twilio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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