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")