I suggest the following improvement to integration: uvc.
When a camera doesn’t display due to incorrect password, instead of (or in addition to) showing a broken picture icon in the card, it would be very helpful to display a string that says “Incorrect password. Add camera password to Configuration.yaml and restart Home Assistant”.
Why this would be very helpful: The long story short, believe it or not, it’s possible to have more than one camera password on a Unifi Video NVR. (This has to do with cameras on the local area network adopting the NVR password vs cameras on remote networks which can stay on the default ubnt password and still function.)
Diagnosing this error condition confuses the user because some cameras will display in a uvc integration card and other cameras will not display in a card, but no explanation is given why.
My Story: At first, I erroneously thought that the integration would only work with certain models of UVC cameras because a G3 camera was displaying and a G4 was not. But in the end, it turned out to be a password issue. Cameras with the default ubnt password were displaying, and cameras with the NVR given password were not displaying. I had not added the Camera password to the Configuration.yaml.
Once I added the NVR provided camera password to Configuration.yaml, cameras that previously were not displaying were working. I’ll have to change the ubnt password on the G3 camera to match the others and it will display too, my problems should be solved.
Side note: Even though Unifi Video NVR is deprecated and Protect is the new product line, Protect and Unifi Video are still different enough to keep Unifi Video in production. Therefore this integration remains useful. Thanks to the developer of this integration!