hassio-addons / addon-vscode

Studio Code Server - Home Assistant Community Add-ons
https://addons.community
MIT License
502 stars 80 forks source link

Thanks for fixing the problem but one error remains. temperature_unit is still wrong #870

Closed derMicro closed 2 weeks ago

derMicro commented 2 weeks ago
          Thanks for fixing the problem but one error remains. temperature_unit is still wrong
image

If I remove the °, then the template does not work and HA shows me the following log in the log:

Logger: homeassistant.config
Quelle: config.py:1300
Erstmals aufgetreten: 00:18:20 (3 Vorkommnisse)
Zuletzt protokolliert: 00:18:20

Invalid config for 'weather' from integration 'template' at _my/weather/cards.yaml, line 7: value must be one of [<UnitOfTemperature.KELVIN: 'K'>, <UnitOfTemperature.CELSIUS: '°C'>, <UnitOfTemperature.FAHRENHEIT: '°F'>] for dictionary value 'temperature_unit', got 'C', please check the docs at https://www.home-assistant.io/integrations/template
Invalid config for 'weather' from integration 'template' at _my/weather/cards.yaml, line 24: value must be one of [<UnitOfTemperature.KELVIN: 'K'>, <UnitOfTemperature.CELSIUS: '°C'>, <UnitOfTemperature.FAHRENHEIT: '°F'>] for dictionary value 'temperature_unit', got 'C', please check the docs at https://www.home-assistant.io/integrations/template
Invalid config for 'weather' from integration 'template' at _my/weather/cards.yaml, line 41: value must be one of [<UnitOfTemperature.KELVIN: 'K'>, <UnitOfTemperature.CELSIUS: '°C'>, <UnitOfTemperature.FAHRENHEIT: '°F'>] for dictionary value 'temperature_unit', got 'C', please check the docs at https://www.home-assistant.io/integrations/template

Originally posted by @derMicro in https://github.com/hassio-addons/addon-vscode/issues/867#issuecomment-2384285729

frenck commented 2 weeks ago

Hmmz that is indeed a bug; will take a look 👍

../Frenck

frenck commented 2 weeks ago

Fixed in https://github.com/hassio-addons/addon-vscode/releases/tag/v5.16.2

derMicro commented 2 weeks ago

Thanks, it works :)