Fixed type issue
This commit is contained in:
parent
828c78cb1f
commit
1215b5e994
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue