Fixed type issue

This commit is contained in:
theolind 2015-03-07 15:55:32 +01:00
parent 828c78cb1f
commit 1215b5e994

View File

@ -44,12 +44,12 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
class SystemMonitorSensor(Device):
""" A system monitor sensor """
def __init__(self, type, argument=''):
self._name = SENSOR_TYPES[type][0] + ' ' + argument
def __init__(self, sensor_type, argument=''):
self._name = SENSOR_TYPES[sensor_type][0] + ' ' + argument
self.argument = argument
self.type = type
self.type = sensor_type
self._state = None
self.unit_of_measurement = SENSOR_TYPES[type][1]
self.unit_of_measurement = SENSOR_TYPES[sensor_type][1]
self.update()
@property