MJPEG/Generic cameras stopped working after updating to 0.85

I have mjpeg cameras configured like this:

camera:
   platform: mjpeg
   mjpeg_url: !secret webcam_s_stream_url
   still_image_url: !secret webcam_s_image_url
   name: Webcam-Sufragerie
   username: !secret webcam_s_username
   password: !secret webcam_s_password

Logging is set up like this:

logger:
  default: error
  logs:
    homeassistant.components.camera.mjpeg: debug

But I get not error/log messages for the camera components.
When starting up Home Assistant I get no cameras in the standard view, nor in the lovelace view, but I am able to see the entities in the entity view (and I can also see the webcam stream).

The old name for the camera used to be camera.webcamsufragerie, but now has changed to camera.webcam_sufragerie.
I didn’t catch this change in the changelog, but maybe I overlooked it.

So, the fix is to change the camera id in your configuration to match the new name. Most likely it only happened because “-” is now converted to “_”.

It is the slug function that has got changed, and it is listed in the breaking changes

I read that too - would help if I knew what the slug function was :slight_smile:

EDIT: Nvm, now I know:

https://blog.dolphm.com/slugify-a-string-in-python/