diff --git a/homeassistant/components/thingspeak/__init__.py b/homeassistant/components/thingspeak/__init__.py index 1870a317752..0eccfbbcd04 100644 --- a/homeassistant/components/thingspeak/__init__.py +++ b/homeassistant/components/thingspeak/__init__.py @@ -37,20 +37,18 @@ CONFIG_SCHEMA = vol.Schema( def setup(hass, config): """Set up the Thingspeak environment.""" - conf = config[DOMAIN] api_key = conf.get(CONF_API_KEY) channel_id = conf.get(CONF_ID) entity = conf.get(CONF_WHITELIST) try: - channel = thingspeak.Channel(channel_id, write_key=api_key, timeout=TIMEOUT) + channel = thingspeak.Channel(channel_id, api_key=api_key, timeout=TIMEOUT) channel.get() except RequestException: _LOGGER.error( "Error while accessing the ThingSpeak channel. " - "Please check that the channel exists and your " - "API key is correct" + "Please check that the channel exists and your API key is correct" ) return False diff --git a/homeassistant/components/thingspeak/manifest.json b/homeassistant/components/thingspeak/manifest.json index 689a6678cab..9fddd941543 100644 --- a/homeassistant/components/thingspeak/manifest.json +++ b/homeassistant/components/thingspeak/manifest.json @@ -3,7 +3,7 @@ "name": "Thingspeak", "documentation": "https://www.home-assistant.io/integrations/thingspeak", "requirements": [ - "thingspeak==0.4.1" + "thingspeak==1.0.0" ], "dependencies": [], "codeowners": [] diff --git a/requirements_all.txt b/requirements_all.txt index 135376d5eee..1a3da42e9e8 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1898,7 +1898,7 @@ teslajsonpy==0.0.26 thermoworks_smoke==0.1.8 # homeassistant.components.thingspeak -thingspeak==0.4.1 +thingspeak==1.0.0 # homeassistant.components.tikteck tikteck==0.4