Solved - Unable to change Home Assistant port number?

I can’t get home assistant to run on any port or than port 8123.
Below is my configuration.yaml file:

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
 http:
   server_port: 9000

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml

Why is home assistant still listening on port 8123 when I want it to listen on port 9000?

Probably because that block is moved one space over. You have this:

 http:
   server_port: 9000

…when it should be this:

http:
  server_port: 9000

Also, in case you don’t know, you need to restart Home Assistant for changes to configuration.yaml to take effect. Always run the configuration check before restarting though.

It was as simple as that - poor alignment!

Problem solved, thanks.

See this for preventing future occurrences:

2 spaces or 3 ?