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
10 changes: 8 additions & 2 deletions homeassistant/components/insteon_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
https://home-assistant.io/components/insteon_local/
"""
import logging
import os

import requests
import voluptuous as vol
Expand All @@ -13,7 +14,7 @@
CONF_PASSWORD, CONF_USERNAME, CONF_HOST, CONF_PORT, CONF_TIMEOUT)
import homeassistant.helpers.config_validation as cv

REQUIREMENTS = ['insteonlocal==0.48']
REQUIREMENTS = ['insteonlocal==0.52']

_LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -47,7 +48,12 @@ def setup(hass, config):
timeout = conf.get(CONF_TIMEOUT)

try:
insteonhub = Hub(host, username, password, port, timeout, _LOGGER)
if not os.path.exists(hass.config.path('.insteon_cache')):
os.makedirs(hass.config.path('.insteon_cache'))

insteonhub = Hub(host, username, password, port, timeout, _LOGGER,
hass.config.path('.insteon_cache'))

# Check for successful connection
insteonhub.get_buffer_status()
except requests.exceptions.ConnectTimeout:
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ influxdb==3.0.0
insteon_hub==0.4.5

# homeassistant.components.insteon_local
insteonlocal==0.48
insteonlocal==0.52

# homeassistant.components.insteon_plm
insteonplm==0.7.4
Expand Down