mirror of
https://github.com/esphome/esphome.git
synced 2025-09-23 13:42:27 +01:00
review
This commit is contained in:
@@ -698,7 +698,7 @@ class EsphomeCore:
|
|||||||
def platformio_cache_dir(self) -> str:
|
def platformio_cache_dir(self) -> str:
|
||||||
"""Get the PlatformIO cache directory path."""
|
"""Get the PlatformIO cache directory path."""
|
||||||
# Check if running in Docker/HA addon with custom cache dir
|
# Check if running in Docker/HA addon with custom cache dir
|
||||||
if cache_dir := os.environ.get("PLATFORMIO_CACHE_DIR"):
|
if (cache_dir := os.environ.get("PLATFORMIO_CACHE_DIR")) and cache_dir.strip():
|
||||||
return cache_dir
|
return cache_dir
|
||||||
# Default PlatformIO cache location
|
# Default PlatformIO cache location
|
||||||
return os.path.expanduser("~/.platformio/.cache")
|
return os.path.expanduser("~/.platformio/.cache")
|
||||||
|
Reference in New Issue
Block a user