From 1fba01a69c10c42fc801316682239482c90519e3 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 14 Dec 2023 15:03:52 -0600 Subject: [PATCH] Update getInfo.tasmota.py --- inc/getInfo.tasmota.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inc/getInfo.tasmota.py b/inc/getInfo.tasmota.py index f694559c..7b7d98cd 100644 --- a/inc/getInfo.tasmota.py +++ b/inc/getInfo.tasmota.py @@ -1,4 +1,8 @@ -from /opt/pylacrossapi import lacrosse +import sys +import os +sys.path.insert(0, os.path.abspath('/opt/pylacrossapi')) + +from pylacrossapi import lacrosse device_id = sys.argv[1] unit_measure = 0