From 36e033e0f78092fb0769e6efe62f1daae948e6a3 Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Sun, 10 Jan 2021 03:17:10 +0100 Subject: [PATCH] Don't shadow python builtins --- mqtt_sensord/sensorlib/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mqtt_sensord/sensorlib/base.py b/mqtt_sensord/sensorlib/base.py index cb8ddec..d4225d0 100644 --- a/mqtt_sensord/sensorlib/base.py +++ b/mqtt_sensord/sensorlib/base.py @@ -17,10 +17,10 @@ class Sensor(object): _mqtt_callbacks = {} HAS_SENSOR_DATA = True - def __init__(self, id, name, type, pin, description, **sensor_conf): - self.id = id + def __init__(self, sensor_id, name, sensor_type, pin, description, **sensor_conf): + self.id = sensor_id self.name = name - self.type = type + self.type = sensor_type self.pin = pin self.description = description