Aidan Timson 52b90621c7
System Bridge coordinator and connector refactor (#114896)
* Update systembridgeconnector to 5.0.0.dev2

* Refactor

* Move out of single use method

* Update systembridgeconnector to 4.1.0.dev0 and systembridgemodels to 4.1.0

* Refactor WebSocket connection handling in SystemBridgeDataUpdateCoordinator

* Remove unnessasary fluff

* Update system_bridge requirements to version 4.1.0.dev1

* Set systembridgeconnector to 4.1.0

* Fix config flow tests

We'll make this better later

* Add missing tests for media source

* Update config flow tests

* Add missing check

* Refactor WebSocket connection handling in SystemBridgeDataUpdateCoordinator

* Move inside try

* Move log

* Cleanup log

* Fix disconnection update

* Set unregistered on disconnect

* Remove bool, use listener task

* Fix eager start

* == -> is

* Reduce errors

* Update test
2024-07-17 18:39:24 +02:00

22 lines
392 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] = 10