cmroche / OctoPrint-HomeAssistant

Home Assistant plugin for OctoPrint, enabling MQTT discovery of you device and sensors
110 stars 18 forks source link

Fix Home Assistant 2021.10 float conversion changes #80

Closed garyt72 closed 2 years ago

garyt72 commented 2 years ago

I've implemented this change on my OctoPrint install and it resolved all of the warnings referenced by Issue 78.

Change: |float and |float|default(0,true) to: |float(0) per the warnings in the Home Assistant logs

https://github.com/cmroche/OctoPrint-HomeAssistant/issues/78#issuecomment-943943222

calexandre commented 2 years ago

Great job. Waiting for this one to get merged.

cmroche commented 2 years ago

Hey @garyt72 Thank for submitting this!

I caught the error myself and submitted a fix before realizing there was a PR. So I will close this, fix is on release 3.3.1 though.