Add missing dependency in emulated_hue component. (#5394)

* Add missing dependency in emulated_hue component.

On first startup after upgrade to 0.36, the emulated_hue componented failed to
start because the http component had installed the modules it depends on, in
this particular case 'aiohttp_cors' was missing.

* Include dependencies for the emulated_hue web server

Emulated_hue uses it's own 'web-server' component to handle hue related
discovery and config, so we need to make sure the required http modules are
made available before we are initialized.

We don't have to depend on the home-assistant http/api component because we do
not need to have the frontend to be initialized to handle emulated_hue, so we
can just import in the same set of requirements as the http component.

* Fix linting error
This commit is contained in:
Jan Harkes 2017-01-25 00:29:34 -05:00 committed by Paulus Schoutsen
parent 88e0bb6733
commit 6adc5c318e
2 changed files with 2 additions and 0 deletions

View file

@ -14,6 +14,7 @@ from homeassistant import util
from homeassistant.const import (
EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP,
)
from homeassistant.components.http import REQUIREMENTS # NOQA
from homeassistant.components.http import HomeAssistantWSGI
import homeassistant.helpers.config_validation as cv
from .hue_api import (

View file

@ -33,6 +33,7 @@ SoCo==0.12
# homeassistant.components.notify.twitter
TwitterAPI==2.4.3
# homeassistant.components.emulated_hue
# homeassistant.components.http
aiohttp_cors==0.5.0