Covers not working anymore after upgrade to 2023.12


after upgrading to 2023.12 my cover entities aren’t available anymore.

My covers definition is like this:

  - platform: command_line
        friendly_name: 'Alles'
        command_open: 'curl "<url>'
        command_close: 'curl "<url>'
        command_stop: 'curl "<url>'

The log reports the following:

Error while setting up command_line platform for cover
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/", line 361, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/command_line/", line 43, in async_setup_platform
    entities: dict[str, Any] = {slugify(discovery_info[CONF_NAME]): discovery_info}
TypeError: 'NoneType' object is not subscriptable

In the releasenotes I read this:

I don’t know if that’s related to the issues I’m having? If so, how can I fix this?


It is!
Use the new format.

If you scroll down, there is an example.

1 Like

Thanks, that worked perfectly.