Not possible to set the currency

Hello,

I configured the currency in the configuration.yaml like this:

homeassistant:
  name: Home
  country: FR
  currency: EUR

And I’m getting the following error message in console
currency error

My configuration seems correct but apparently setting the currency in the config is not changing anything. Is it a known bug ? Is there a workaround for that ? Any kind of help would be appreciated :slight_smile:

Looks like you’re using some sort of encoding on your file and it’s not seeing ascii characters. Might be due to your keyboard settings.

1 Like

Thank you for your answer. I found the problem, it was coming from something else.

it was caused by that:

sensor:
  - platform: template:
    sensors:
      mySensor:
        unit_of_measurement: '€'
        device_class: monetary

The error message is gone after removing unit_of_measurement. I suppose that device_class: monetary is enough.

Thank you for your help :slight_smile:

It’s the euro character you’re using, which isn’t ascii :slightly_smiling_face:

Thank you for pointing that out. Do you think the right solution is to change € to EUR? Or to change the file encoding (currently utf-8)? Or simply remove it? What do you think would be the good approach?