Files
up-ha/custom_components/up_banking/const.py
T
git dc7c300884
Validate / syntax (push) Canceled after 0s
Fix monetary sensor compatibility
2026-09-27 18:49:08 +10:00

15 lines
454 B
Python

"""Constants for Up Banking."""
from datetime import timedelta
DOMAIN = "up_banking"
PLATFORMS = ["sensor"]
CONF_TOKEN = "token"
CONF_ACCOUNTS = "accounts"
EVENT_TRANSACTION = "up_banking_transaction"
DEFAULT_SCAN_INTERVAL = timedelta(minutes=5)
STORAGE_VERSION = 1
STORAGE_KEY = f"{DOMAIN}.seen_transactions"
API_URL = "https://api.up.com.au/api/v1"
# Home Assistant's monetary device class requires the ISO 4217 code internally.
CURRENCY_CODE = "AUD"