The country has not been configured

After the first beta release 2022.12 i get the message “The country has not been configured”. But i do not know how to resolve this. More info only show a blank page.

2 Likes

probably because this is Beta…

  1. You are not supposed to ask beta questions on the forum

  2. It is fixed in the next beta.

If your configuration is in yaml, you have to add a tag country: ISO Code under the homeassistant tag like so:

homeassistant:
  country: FR

If it is in th UI, you should be able to navigate to the corresponding tab and select the country there.

Settings > System > General

Remember that beta are for adventurous people and ready to try find the solution all by themselves normally.

17 Likes

The problem is also now on the production build.

Solution: ​ctrl+F5
refresh to the new interface that has the option under

Settings > System > General

46 Likes

I’m not in Beta, had the same issue, got it fixed now.

5 Likes

Yep, same for me. Not on beta, found the solution here.

4 Likes

Same here, same issue. I think there may be many of us with this problem.

The problem is also now on the production build.

Solution: ​ctrl+F5
refresh to the new interface that has the option under

Settings > System > General

I get “Editor disabled because config stored in configuration.yaml.” updating Yaml, I still get the warning.

2 Likes

Open to edit configuration.yaml

Find:
homeassistant:
Add:
country: {your-2-letter-HA-Country-Code}

Check configuration and restart Home Assistant.

4 Likes

Worked for me with Olivier1974’s solution (configuration in yaml) but with single quotes for country code:

homeassistant:
country: ‘FR’

1 Like

Mind the indentation :warning:

homeassistant:
  country: FR

I have installed production version, but also got “the country has not been configured”. Not possible to fix using system/general, because it’s deactivated. The configuration is stored in configuration.yaml. I tried to add country under homeassistant: but got error message “property country not allowed”

5 Likes

Even if you get an error in Studio server for the country property, it works correctly once you reload the location configuration.

Make sure you use the correct ISO 3166-1 alpha-2 code for your country.

1 Like

Soooo… If I have setup my location in the map, why does HA ask me tospecify the country? Is it so complicated to try to decode the country from the location, setup as default and potentially ask user to verify after the upgrade?

2 Likes

I can copy paste
country: FR
and it works but not for Norway - NO

homeassistant:
  country: NO

is not working? What is the log telling?

Developer tools: Configuration invalid!

invalid ISO 3166 formatted country for dictionary value @ data[‘country’]

I have to look in the logs

2 Likes

For Norway - NO - double quotes is the answer.
country: “NO”

4 Likes