mirror of
https://github.com/home-assistant/core.git
synced 2025-04-28 19:27:51 +00:00

* Fix System Bridge wait timeout wait condition * Add DataMissingException as a timeout condition * Add tests
24 lines
432 B
Python
24 lines
432 B
Python
"""Constants for the System Bridge integration."""
|
|
|
|
from typing import Final
|
|
|
|
from systembridgemodels.modules import Module
|
|
|
|
DOMAIN = "system_bridge"
|
|
|
|
MODULES: Final[list[Module]] = [
|
|
Module.BATTERY,
|
|
Module.CPU,
|
|
Module.DISKS,
|
|
Module.DISPLAYS,
|
|
Module.GPUS,
|
|
Module.MEDIA,
|
|
Module.MEMORY,
|
|
Module.PROCESSES,
|
|
Module.SYSTEM,
|
|
]
|
|
|
|
DATA_WAIT_TIMEOUT: Final[int] = 20
|
|
|
|
GET_DATA_WAIT_TIMEOUT: Final[int] = 15
|