mjmccans / airthings-mqtt-ha

Python script for Airthings devices that uses mqtt to integrate with Home Assistant via mqtt discovery.
MIT License
41 stars 3 forks source link

TypeError: type str doesn't define __round__ method #2

Closed Vendo232 closed 3 years ago

Vendo232 commented 3 years ago

Hi

running into this error, any idea what went wrong? Entities are created in HA but values are "unknown" using the older version Wave

image

mjmccans commented 3 years ago

Vendo232,

It looks like a sensor value is coming in as a string that I was expecting to come in as a float. I have updated the repository to check for string values and not try to round them. Please update to the latest version and let me know if that fixes your issue. Thank you.