forked from home-assistant/core
fixed typo
This commit is contained in:
@@ -29,13 +29,13 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
""" Sets up the sensors """
|
""" Sets up the sensors """
|
||||||
|
|
||||||
devices = []
|
devices = []
|
||||||
for resurce in config['resources']:
|
for resource in config['resources']:
|
||||||
if 'arg' not in resurce:
|
if 'arg' not in resource:
|
||||||
resurce['arg'] = ''
|
resource['arg'] = ''
|
||||||
if resurce['type'] not in sensor_types:
|
if resource['type'] not in sensor_types:
|
||||||
_LOGGER.error('Sensor type: "%s" does not exist', resurce['type'])
|
_LOGGER.error('Sensor type: "%s" does not exist', resource['type'])
|
||||||
else:
|
else:
|
||||||
devices.append(SystemMonitorSensor(resurce['type'], resurce['arg']))
|
devices.append(SystemMonitorSensor(resource['type'], resource['arg']))
|
||||||
|
|
||||||
add_devices(devices)
|
add_devices(devices)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user