HandyHat / ha-hildebrandglow-dcc

Home Assistant integration for UK SMETS (Smart) meters pulling data from the DCC via the Hildebrand Glow API
MIT License
232 stars 33 forks source link

.local permission error on HomeAssistant Core Docker when running as a non-root user #388

Open UniqueName992 opened 8 months ago

UniqueName992 commented 8 months ago

Describe the bug When installing on the home assistant docker as a non-root user mode, a permission error occurs within the /.local folder:

Unable to install package pyglowmarkt==0.5.5: ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/.local' Check the permissions.

To Reproduce Steps to reproduce the behaviour:

  1. Run home assistant core in docker as a user with the user flag set
  2. Attempt to install the integration via HACS
  3. Attempt to add the integration. Notice that the configuration does not load.
  4. Check the system logs to observe the permission error.

Expected behaviour The python package should be installable as a non-root user.

Version HASS - 2024.1.2 hildrebrandglow - 1.03

Additional context This issue can be worked around by creating a /.local mount for the homeassistant docker and adding it to the docker configuration with the necessary user permissions. This integration then works as expected