Lovelace picture-entity card throws error with a camera

I have a Wyze camera running the Dafang firmware set up in HA. In Lovelace, it’s set up as a picture entity card as follows (code is generated by the GUI editor, I am just copying from the raw YAML editor) :

  - badges: []
    cards:
      - entity: camera.wyze1
        camera_image: camera.wyze1
        type: picture-entity
    title: Office

Now, the card works just fine - switcing to the Office tab shows a smaller still image, and clicking on the card opens a much larger image that’s either live or 1/s slideshow (can’t quite tell). However, any time I click on the card, the following error appears in my log:

https://REDACTED.duckdns.org:8123/local/card-tools.js?track=true:64:16 TypeError: document.querySelector(...).shadowRoot.querySelector(...).shadowRoot.querySelector(...).shadowRoot is null

I do have some other custom cards that use card-tools, but not this one, it’s a standard lovelace card, afaik.

In case it matters, here’s my camera setup:

camera:
  - platform: generic
    name: wyze1
    username: !secret wyzeuid
    password: !secret wyzepass
    authentication: basic
    still_image_url: https://10.1.1.40/cgi-bin/currentpic.cgi
    stream_source: rtsp://10.1.1.40:8554/unicast
    verify_ssl: false
    scan_interval: 1

Any ideas?