Unable to compile esphome using CLI. voluptuous.error.Invalid

I am very new to esphome and home assistant and just googling the error didn’t help me. I am trying to get a raspberry pi to talk over wifi to a esp32 device. Both successfully connect to the network, but I can’t get compiling to work for the esp32 device anymore. I am using the CLI on my windows machine to compile it as using the web based compiler didn’t work so well on my Raspberry Pi 3B+. I did managed to get it working a week or so ago, then it came up with the error below and hasn’t allowed further compilation ever since.

I assume it has something to do with the git repository, but my git knowledge is very small and I don’t know how to test if the git repository it is looking for is valid. Any help appreciated.

>esphome run .\workshop.yaml

INFO ESPHome 2024.12.2
INFO Reading configuration .\workshop.yaml...
INFO Generating C++ source...
INFO Cloning https://github.com/espressif/[email protected]
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Scripts\esphome.exe\__main__.py", line 7, in <module>
  File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\__main__.py", line 1036, in main
    return run_esphome(sys.argv)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\__main__.py", line 1023, in run_esphome
    rc = POST_CONFIG_ACTIONS[args.command](args, config)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\__main__.py", line 503, in command_run
    exit_code = write_cpp(config)
                ^^^^^^^^^^^^^^^^^
  File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\__main__.py", line 213, in write_cpp
    return write_cpp_file()
           ^^^^^^^^^^^^^^^^
  File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\__main__.py", line 231, in write_cpp_file
    writer.write_cpp(code_s)
  File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\writer.py", line 341, in write_cpp
    copy_src_tree()
  File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\writer.py", line 307, in copy_src_tree
    copy_files()
  File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\components\esp32\__init__.py", line 801, in copy_files
    repo_dir, _ = git.clone_or_update(
                  ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\git.py", line 67, in clone_or_update
    run_git_command(cmd)
  File "C:\Users\jb\AppData\Local\Programs\Python\Python311\Lib\site-packages\esphome\git.py", line 32, in run_git_command
    raise cv.Invalid(err_str)
voluptuous.error.Invalid: Cloning into '.esphome\idf_components\7cd5e7e1'... 

My configuration file: workshop.yaml

esphome:
  name: esphome-web-baa3a0
  friendly_name: Workshop
  area: workshop
  min_version: 2024.11.0
  name_add_mac_suffix: false

esp32:
  board: esp32dev
  framework:
    type: esp-idf

# Enable logging
logger:

# Enable Home Assistant API
api:

# Allow Over-The-Air updates
ota:
- platform: esphome

wifi:
  ssid: <Hidden>
  password: <Hidden>
  manual_ip:
    static_ip: 192.168.1.102
    gateway: 192.168.1.1
    subnet: 255.255.255.0

switch:
  - platform: gpio
    name: "relay"
    pin: GPIO16

  - platform: gpio
    name: "led"
    pin: GPIO23