Emulated_hue: default type to Google [Breaking change] (#5549)

This commit is contained in:
Paulus Schoutsen 2017-01-24 20:25:08 -08:00 committed by GitHub
parent e53b2fe121
commit 2cf2dcd9ba

View file

@ -45,7 +45,7 @@ DEFAULT_EXPOSE_BY_DEFAULT = True
DEFAULT_EXPOSED_DOMAINS = [
'switch', 'light', 'group', 'input_boolean', 'media_player', 'fan'
]
DEFAULT_TYPE = TYPE_ALEXA
DEFAULT_TYPE = TYPE_GOOGLE
CONFIG_SCHEMA = vol.Schema({
DOMAIN: vol.Schema({
@ -122,6 +122,10 @@ class Config(object):
self.numbers = None
self.cached_states = {}
if self.type == TYPE_ALEXA:
_LOGGER.warning('Alexa type is deprecated and will be removed in a'
' future version')
# Get the IP address that will be passed to the Echo during discovery
self.host_ip_addr = conf.get(CONF_HOST_IP)
if self.host_ip_addr is None: