Don't shadow python builtins
This commit is contained in:
parent
53821074d6
commit
36e033e0f7
|
@ -17,10 +17,10 @@ class Sensor(object):
|
||||||
_mqtt_callbacks = {}
|
_mqtt_callbacks = {}
|
||||||
HAS_SENSOR_DATA = True
|
HAS_SENSOR_DATA = True
|
||||||
|
|
||||||
def __init__(self, id, name, type, pin, description, **sensor_conf):
|
def __init__(self, sensor_id, name, sensor_type, pin, description, **sensor_conf):
|
||||||
self.id = id
|
self.id = sensor_id
|
||||||
self.name = name
|
self.name = name
|
||||||
self.type = type
|
self.type = sensor_type
|
||||||
self.pin = pin
|
self.pin = pin
|
||||||
self.description = description
|
self.description = description
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue