PiotrMachowski / Home-Assistant-Lovelace-HTML-Jinja2-Template-card

This card displays provided Jinja2 template as an HTML content of a card. It uses exactly the same engine as Home Assistant in Developer tools.
MIT License
68 stars 10 forks source link

Card doesn't work for non-admin accounts #4

Closed DarkFox closed 4 years ago

DarkFox commented 4 years ago

When trying to view a template card when logged in as a user that's part of the 'users' group, the card won't load due to getting a 401: Unauthorized response from the /api/template API endpoint. Changing the user's group to admin makes it work again.

I don't know the specifics of the endpoint, so this might need a change in Home Assistant, but I suppose at least the documentation should mention it.

PiotrMachowski commented 4 years ago

It should be working from version 1.0.2