a-p-z / datetime-card

A minimalistic card for Home Assistant Lovelace UI which shows how many days it has been between any input_datetime and today.
21 stars 1 forks source link

Error when trying to use the visual editor #15

Closed bmcclure closed 10 months ago

bmcclure commented 1 year ago

When I try to add or edit this card, it won't allow me to go to the visual editor, and it shows this error below the yaml editor that appears:

Configuration errors detected:
<datetime-card-editor>: Cannot set read-only property 'setConfig'

I've tried configuring the card in yaml, then closing and re-editing it, and it throws the same error and skips right to the yaml editor.

a-p-z commented 1 year ago

NOTE: lovelace-card-mod and lovelace-layout-card makes the visual editor crash because it tries to overwrite setConfig method, which in datetime-card is read-only. The code editor works, just ignore the error.

Do you have any of these card installed?