jeeftor / HomeAssistant

This is my public home assistant stuff
45 stars 14 forks source link

Fix for temp_suffix set to None #11

Open franzs opened 1 year ago

franzs commented 1 year ago

If temp_suffix is set to None an error shows up:

ERROR (MainThread) [homeassistant.components.automation.weather_display] Error rendering variables: TypeError: 'float' object is not iterable

This is caused by get_text_len being called with a float instead of an string which is not iterable. To solve this the argument is casted to string.