|
@@ -236,7 +236,8 @@ for key in sensors_yaml:
|
|
|
#print(key, '->', sensors_yaml[key])
|
|
|
if verbosemode: print("Sensor name:", key)
|
|
|
sensorName = key
|
|
|
- if sensors_yaml[key].get('LaCrosseID'):
|
|
|
+
|
|
|
+ if sensors_yaml[key].get('LaCrosseID') >= 0:
|
|
|
if verbosemode: print("LaCrosseID:", sensors_yaml[key].get('LaCrosseID'))
|
|
|
sensorId = sensors_yaml[key].get('LaCrosseID')
|
|
|
sensors_id_to_name[sensorId] = sensorName
|
|
@@ -1151,7 +1152,7 @@ try:
|
|
|
#print(key, '->', sensors_yaml[key])
|
|
|
#print("Sensor name:", key)
|
|
|
sensorId = sensors_yaml[key].get('LaCrosseID', None)
|
|
|
- if sensorId is not None:
|
|
|
+ if sensorId >= 0:
|
|
|
lupd = sensors_lastUpdate.get(sensorId, None)
|
|
|
tdiff = 0
|
|
|
if lupd is not None:
|