How can I get homeassistant configuration folder path?

Hi, I’m developing a new custom component. I want to create a temp directory in homeassistant configuration directory to save my files. But I can’t find any method to get homeassitant configuration directory path.
Who can help me out of trouble

It should be available in hass.config.config_path, assuming you are importing hass into your component.

1 Like