Parcourir la source

Merge pull request #71 from carlallen/patch-1

Add back in sensor_name and improve description for offset
tags/3.1_alpha
Manuel83 GitHub il y a 8 ans
Parent
révision
785e5c984c
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      modules/base_plugins/one_wire/__init__.py

+ 2
- 2
modules/base_plugins/one_wire/__init__.py Voir le fichier

@@ -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):



Chargement…
Annuler
Enregistrer