fufar / simple-clock-card

Simple clock card for Home assistant lovelace
49 stars 23 forks source link

throws error "Cannot add property use_military" #4

Closed elitehammer closed 3 years ago

elitehammer commented 3 years ago

Hi, I have added a repository via the HACS store (should be updated installation options). Restarted HA then, tried to add into the Lovelace the manual card with:

type: 'custom:simple-clock-card'

I received the following error message:

Cannot add property use_military, object is not extensible
type: 'custom:simple-clock-card'

is there something I did wrong or there is an error in the script?

I am running Home Assistant 2021.3.4

fufar commented 3 years ago

show full lovelace card code try to copy this, will it work?

type: 'custom:simple-clock-card'
use_military: false
hide_seconds: false
fufar commented 3 years ago

hope it ok now :)

elitehammer commented 3 years ago

Thanks, @fufar it started to work after an update. I have tried the same code as well before an update. Love minimalistic look :)