iantrich / restriction-card

🔒 Apply restrictions to Lovelace cards
MIT License
259 stars 22 forks source link

seems like row: boolean is not optional #30

Closed xenz698 closed 4 years ago

xenz698 commented 4 years ago

Checklist:

Release with the issue: restriction card v1.1.9

Last working release (if known):

Browser and Operating System: Chrome 81.0.4044.138 Firefox 76.0.1 (64bit) Windows 7 SP1

Description of problem: Seems like the option Row is not optional but it's a required item. According to the instruction I put in only two Required options: type and card

        - type: "custom:restriction-card"
          card:
            entity: group.second_floor

and it gave me this error message image

until I put in

          row: true

Then it show up okay image

Javascript errors shown in the web inspector (if applicable):

Additional information:

iantrich commented 4 years ago

It's optional. If you want a row you use it

elitemike commented 4 years ago

I see the same behavior. Without row: true it does not work

iantrich commented 4 years ago

Without a config to see, there's nothing anyone can do for you