Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for Glances component."""
2 
3 from datetime import timedelta
4 import sys
5 
6 DOMAIN = "glances"
7 CONF_VERSION = "version"
8 
9 DEFAULT_HOST = "localhost"
10 DEFAULT_PORT = 61208
11 DEFAULT_SCAN_INTERVAL = timedelta(seconds=60)
12 
13 CPU_ICON = f"mdi:cpu-{64 if sys.maxsize > 2**32 else 32}-bit"