iantrich / restriction-card

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

code in secret #99

Closed tux789-coder closed 10 months ago

tux789-coder commented 10 months ago

beautiful card I appreciate your work I would like to define code inside secret.yaml on card I set code on !secret but card goes wrong any solution?

ildar170975 commented 10 months ago
      type: custom:restriction-card
      restrictions:
        pin:
          code: !secret secret_pin

and secrets are supported in yaml mode of dashboards only. Please close the issue if solved.

tux789-coder commented 10 months ago

i get this error unknown tag !<!secret> (5:28)

2 | restrictions: 3 | confirm: null 4 | pin: 5 | code: !secret code_card --------------------------------^ 6 | block: null 7 | card:

ildar170975 commented 10 months ago

Repeat - YAML MODE

tux789-coder commented 10 months ago

solved