# Ignore everything by default
*

# Whitelist config files
!*.yaml
!*.yml
!.gitignore
!*.md
!*.sh
!*.js*
!*.txt*
!*.json*
!*.ui.yaml

# Whitelist subdirectory yaml files
!*/*.yaml
!*/*.yml
!*/*.md
!*/*.sh
!*/*.js*
!*/*.txt*
!*/*.json*
!*/*.ui.yaml
!*/*.h
!*/*.py


# Whitelist specific folders (uncomment as needed)
!automations/
!scripts/
!blueprints/
!esphome/
!esphome/ha-remote/
!esphome/ha-remote/components/
!esphome/ha-remote/components/**
!esphome/ha-remote/components/max17043/
!esphome/components/**
!esphome/components/max17043/**
!custom_components/**
# !packages/
# !themes/
# !node-red/

# =============================================
# SENSITIVE FILES - always ignore these
# =============================================
secrets.yaml
known_devices.yaml
ip_bans.yaml

# =============================================
# Generated files and folders - always ignore
# =============================================
.storage
.cloud
.google.token
home-assistant.log
home-assistant_v2.db
home-assistant_v2.db-shm
home-assistant_v2.db-wal

# Dependencies and cache
deps/
tts/
www/
custom_components/
image/
ms365_storage/

# Pickle / session files
*.pickle
*.db
*.db-shm
*.db-wal

# OS files
.DS_Store
Thumbs.db
