First of all thanks for this good component. When analyzing a bug report with your and my component, I found a small bug. Should not be critical as most of the users are not running HA in an dev environment...
Problem:
When you start HA out of different folder then the HA-config directory (with -c switch for the config-file) then the json temp-folder gets not created in the config-folder/custom_components/... but at the current location.
Environment:
HA core latest on ubuntu
python 3.12 in venv
Steps to Repro:
Use HA core
initialize venv
go to a different folder then .homeassistant
start ha with hass -c ~/.homeassistant
Add a sensor
a new directory custom_components/places/json_sensors is created in the startup folder
Expected:
json temp folder is created under the HA-config folder
First of all thanks for this good component. When analyzing a bug report with your and my component, I found a small bug. Should not be critical as most of the users are not running HA in an dev environment...
Problem: When you start HA out of different folder then the HA-config directory (with -c switch for the config-file) then the json temp-folder gets not created in the config-folder/custom_components/... but at the current location.
Environment:
Steps to Repro:
Expected: json temp folder is created under the HA-config folder
Others: Potential critical code area: here
Maybe it is better to use hass.config.path() to build the path.