Clear stale configuration for Generic IP Camera?

I’m assuming HA caches some hidden settings for devices, a Generic camera in this case, because I no longer seem to be able to make it work after initially having it working, but then changing some settings before finally reverting back. Is there a way to find and clear this cache? Perhaps by installing sqlite3 in the container and manually editing the DB (yes, I know the risks)?

On initial setup, the still image worked but the stream didn’t. I figured the rtsp:// URL scheme probably doesn’t support basic auth, so I moved the credentials from the username and password parameters to the URL, landing on this configuration that worked fine:

camera:
  - platform: generic
    name: Garage
    still_image_url: http://user:[email protected]/cgi-bin/snapshot.cgi
    stream_source: rtsp://user:[email protected]:554/cam/realmonitor?channel=1&subtype=0

Being a bit obsessive, I thought I’d try to get the credentials out of the URL (allowing me to move them to secrets) so I tried going back to the username and password settings for basic authentication and changing the RTSP stream transport to http. It didn’t work either, so I reverted it all back to the working configuration shown above. But now it says “No video with supported format and MIME type found” when attempting to view the stream.

I’ve tried completely removing the camera and re-adding. I’ve searched the entity’s properties and other places, but can’t find anything relevant to change or clear. I have rebooted, of course. I have an identical camera (Amcrest IP3M-956E) with identical firmware that I added and also works fine using the credentials in the URL, but can find no differences in the config or entity.

Also, I know there is an amcrest integration, but there seems to be an incompatibility with some Amcrest firmware versions due to their API not properly handling URLencoding of query parameters. So I’ve settled on the generic integration which (mostly) works great.

Thank you in advance for any help/insight!