fmartinou / tydom2mqtt

Deltadore Tydom to MQTT Bridge
https://fmartinou.github.io/tydom2mqtt/
MIT License
86 stars 49 forks source link

SyntaxError since last update (25/11/23) #156

Closed JordanOllivier closed 7 months ago

JordanOllivier commented 7 months ago

Hi !

Since the last update, i've got an issue on reload.

SyntaxError: unterminated string literal (detected at line 58) Traceback (most recent call last): File "/app/main.py", line 10, in from mqtt.MqttClient import MqttClient File "/app/mqtt/MqttClient.py", line 13, in from sensors.Light import Light File "/app/sensors/Light.py", line 58 'state_value_template: "{{ 'ON' if value | int(0) > 0 else 'OFF

Screenshot_20231126_165424_Chrome

birse29 commented 7 months ago

Hello,

Same issue with last update

Coldness00 commented 7 months ago

Hello Dears, Same, I went back to the previous image

BlacKTM1190 commented 7 months ago

Hello, There's missing a quote between state_value_template and : in #145 line 58. See #157

fmartinou commented 7 months ago

Thanks for the fix; the PR has been merged.

Coldness00 commented 7 months ago

Hello, Sorry, on my side the issue is still present after pulling latest image :/

image

fmartinou commented 7 months ago

Now this is a missing comma 😤 ; I just fixed it

Coldness00 commented 7 months ago

It's working good. Light feedback is also working when using the switch Thank you a lot :)

fmartinou commented 7 months ago

Thanks for the feedback; I'll build a new release with fixes asap.