From c15fd4323eeea98c1fc99f16f458046d7b602688 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 4 Nov 2016 23:38:27 -0700 Subject: [PATCH] Disable insteon hub (#4221) --- homeassistant/components/insteon_hub.py | 4 ++++ homeassistant/components/light/insteon_hub.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/homeassistant/components/insteon_hub.py b/homeassistant/components/insteon_hub.py index 906f15b6c3f..9d77a0fc5c3 100644 --- a/homeassistant/components/insteon_hub.py +++ b/homeassistant/components/insteon_hub.py @@ -33,6 +33,10 @@ def setup(hass, config): This will automatically import associated lights. """ + _LOGGER.warning('Component disabled at request from Insteon. ' + 'For more information: https://goo.gl/zLJaic') + return False + # pylint: disable=unreachable import insteon username = config[DOMAIN][CONF_USERNAME] diff --git a/homeassistant/components/light/insteon_hub.py b/homeassistant/components/light/insteon_hub.py index 70beadb6c1d..6f547b5f92a 100644 --- a/homeassistant/components/light/insteon_hub.py +++ b/homeassistant/components/light/insteon_hub.py @@ -8,6 +8,8 @@ from homeassistant.components.insteon_hub import INSTEON from homeassistant.components.light import (ATTR_BRIGHTNESS, SUPPORT_BRIGHTNESS, Light) +DEPENDENCIES = ['insteon_hub'] + SUPPORT_INSTEON_HUB = SUPPORT_BRIGHTNESS