mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
* fix unlinked commit * Update insteon_local.py
This commit is contained in:
parent
d0021a6171
commit
3a92bd78ea
@ -5,6 +5,7 @@ For more details about this component, please refer to the documentation at
|
|||||||
https://home-assistant.io/components/insteon_local/
|
https://home-assistant.io/components/insteon_local/
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
@ -13,7 +14,7 @@ from homeassistant.const import (
|
|||||||
CONF_PASSWORD, CONF_USERNAME, CONF_HOST, CONF_PORT, CONF_TIMEOUT)
|
CONF_PASSWORD, CONF_USERNAME, CONF_HOST, CONF_PORT, CONF_TIMEOUT)
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
REQUIREMENTS = ['insteonlocal==0.48']
|
REQUIREMENTS = ['insteonlocal==0.52']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -47,7 +48,12 @@ def setup(hass, config):
|
|||||||
timeout = conf.get(CONF_TIMEOUT)
|
timeout = conf.get(CONF_TIMEOUT)
|
||||||
|
|
||||||
try:
|
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
|
# Check for successful connection
|
||||||
insteonhub.get_buffer_status()
|
insteonhub.get_buffer_status()
|
||||||
except requests.exceptions.ConnectTimeout:
|
except requests.exceptions.ConnectTimeout:
|
||||||
|
@ -320,7 +320,7 @@ influxdb==3.0.0
|
|||||||
insteon_hub==0.4.5
|
insteon_hub==0.4.5
|
||||||
|
|
||||||
# homeassistant.components.insteon_local
|
# homeassistant.components.insteon_local
|
||||||
insteonlocal==0.48
|
insteonlocal==0.52
|
||||||
|
|
||||||
# homeassistant.components.insteon_plm
|
# homeassistant.components.insteon_plm
|
||||||
insteonplm==0.7.4
|
insteonplm==0.7.4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user