From a978f43649bc1a64356a21508600dcf05d694baf Mon Sep 17 00:00:00 2001 From: Carl Allen Date: Sun, 9 Jul 2017 17:13:30 -0500 Subject: [PATCH] Add back in sensor_name and improve description for offset --- modules/base_plugins/one_wire/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/base_plugins/one_wire/__init__.py b/modules/base_plugins/one_wire/__init__.py index ecf4e34..cec4a94 100644 --- a/modules/base_plugins/one_wire/__init__.py +++ b/modules/base_plugins/one_wire/__init__.py @@ -66,8 +66,8 @@ class myThread (threading.Thread): @cbpi.sensor class ONE_WIRE_SENSOR(SensorPassive): - - offset = Property.Number("Offset", True, 0,description="Offset which is added to the received sensor data. positie and negatie values are possible" ) + sensor_name = Property.Select("Sensor", getSensors(), description="The OneWire sensor address.") + offset = Property.Number("Offset", True, 0, description="Offset which is added to the received sensor data. Positive and negative values are both allowed.") def init(self):