Fix discovery (#2305)

pull/2318/head
Paulus Schoutsen 2016-06-14 22:51:46 -07:00 committed by GitHub
parent 5c601f1d5f
commit a65a122464
7 changed files with 7 additions and 7 deletions

View File

@ -71,7 +71,7 @@ def setup_ecobee(hass, network, config):
discovery.load_platform(hass, 'thermostat', DOMAIN,
{'hold_temp': hold_temp}, config)
discovery.load_platform(hass, 'sensor', DOMAIN, None, config)
discovery.load_platform(hass, 'sensor', DOMAIN, {}, config)
# pylint: disable=too-few-public-methods

View File

@ -40,6 +40,6 @@ def setup(hass, config):
return
for component in 'light':
discovery.load_platform(hass, component, DOMAIN, None, config)
discovery.load_platform(hass, component, DOMAIN, {}, config)
return True

View File

@ -74,7 +74,7 @@ def setup(hass, config):
# Load platforms for the devices in the ISY controller that we support.
for component in ('sensor', 'light', 'switch'):
discovery.load_platform(hass, component, DOMAIN, None, config)
discovery.load_platform(hass, component, DOMAIN, {}, config)
ISY.auto_update = True
return True

View File

@ -109,7 +109,7 @@ def setup(hass, config): # pylint: disable=too-many-locals
device, persistence_file, baud_rate, tcp_port)
for component in 'sensor', 'switch', 'light', 'binary_sensor':
discovery.load_platform(hass, component, DOMAIN, None, config)
discovery.load_platform(hass, component, DOMAIN, {}, config)
return True

View File

@ -51,6 +51,6 @@ def setup(hass, config):
return False
for component in 'camera', 'sensor':
discovery.load_platform(hass, component, DOMAIN, None, config)
discovery.load_platform(hass, component, DOMAIN, {}, config)
return True

View File

@ -92,7 +92,7 @@ def setup(hass, base_config):
VERA_DEVICES[dev_type].append(device)
for component in 'binary_sensor', 'sensor', 'light', 'switch':
discovery.load_platform(hass, component, DOMAIN, None, base_config)
discovery.load_platform(hass, component, DOMAIN, {}, base_config)
return True

View File

@ -36,7 +36,7 @@ def setup(hass, config):
return False
for component in ('sensor', 'switch', 'alarm_control_panel', 'lock'):
discovery.load_platform(hass, component, DOMAIN, None, config)
discovery.load_platform(hass, component, DOMAIN, {}, config)
return True