Fix discovery (#2305)
parent
5c601f1d5f
commit
a65a122464
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue