Script/setup: Wrong Python version?

Hi,

I’m trying to start developing of a Home Assistant Integration. The Problem is that the script/setup script thinks that I have the wrong Python version installed (Mac OS).

pre-commit installed at .git/hooks/pre-commit

  • × No solution found when resolving dependencies:*
  • ╰─▶ Because the current Python version (3.11.1) does not satisfy*
  •  Python>=3.12.0 and homeassistant==2024.9.0.dev0 depends on*
    
  •  Python>=3.12.0, we can conclude that homeassistant==2024.9.0.dev0 cannot*
    
  •  be used.*
    

peter@MBP-von-Peter core % python --version
Python 3.12.4

So, what is wrong here and what should I do?

Thanks,
Peter