sveinse / zaptec

zaptec charger custom component for home assistant
MIT License
11 stars 2 forks source link

Unprivileged users fails to use zaptec #10

Closed sveinse closed 1 year ago

sveinse commented 1 year ago

If the zaptec integration is used with an unprivileged user that can only charge and have no access to the installation, the configuration of the integration fails completely:

ERROR (MainThread) [custom_components.zaptec] get request to https://api.zaptec.com/api/installation/xxxx/hierarchy failed with status 403: <ClientResponse(https://api.zaptec.com/api/installation/xxxx/hierarchy) [403 Forbidden]>

sveinse commented 1 year ago

This is now fixed in 80b934e, but I see that an unprivileged user has very little control. It doesn't seem like it is able to start or stop the charging. However, the zaptec integration doesn't crash, so closing this issue.