From 53446a377ef0f2571f7ec462b41a350522721215 Mon Sep 17 00:00:00 2001 From: Andreas Laub Date: Thu, 10 Aug 2023 07:53:29 +0200 Subject: [PATCH] fix illuminance unit to lx On branch main Your branch is up to date with 'origin/main'. Changes to be committed: modified: tsl2561-homie.py --- tsl2561-homie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsl2561-homie.py b/tsl2561-homie.py index 1dac24f..de4b4fb 100755 --- a/tsl2561-homie.py +++ b/tsl2561-homie.py @@ -38,7 +38,7 @@ def on_connect(client, userdata, flags, rc): publish(nodes + "/$name","TSL2561 Sensor") publish(nodes + "/$properties","lux,broadband,infrared") publish(nodes + "/lux/$name","Lux") - publish(nodes + "/lux/$unit","lux") + publish(nodes + "/lux/$unit","lx") publish(nodes + "/lux/$datatype","float") publish(nodes + "/lux/$settable","false") publish(nodes + "/broadband/$name","Broadband")