custom-components / places

Component to integrate with OpenStreetMap Reverse Geocode (places)
GNU General Public License v3.0
110 stars 22 forks source link

JSON temp folder created at wrong location #269

Closed ReneNulschDE closed 4 months ago

ReneNulschDE commented 4 months ago

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.

Snuffy2 commented 4 months ago

Please let me know if v2.6.2 fixes this or not.

ReneNulschDE commented 4 months ago

Fixed. Thx