lkempf/casambi-bt

Store network data in .storage folder

Closed this issue · 3 comments

Is your feature request related to a problem? Please describe.
It would be nice it the casambi integration would store it's data in the /config/.storage folder for a better overview.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

lkempf commented

I've added some logic to detect whether the library has been loaded via HA. The cache folder is changed in that case. This still needs a bit more testing but I should get it released before christmas

This could also be a parameter set on init from HA if auto detection is complicated.

lkempf commented

Thanks for the tip. After some testing and discovering that HA has an API for getting the config folder I'm going to switch to that approach. Using cwd doesn't seem that robust.