* Add arcam_fmj support * Just use use state in player avoid direct client access * Avoid leaking exceptions on invalid data * Fix return value for volume in case of 0 * Mark component as having no coverage * Add new requirement * Add myself as maintainer * Correct linting errors * Use async_create_task instead of async_add_job * Use new style string format instead of concat * Don't call init of base class without init * Annotate callbacks with @callback Otherwise they won't be called in loop * Reduce log level to debug * Use async_timeout instead of wait_for * Bump to version of arcam_fmj supporting 3.5 * Fix extra spaces * Drop somewhat flaky unique_id * Un-blackify ident to satisy pylint * Un-blackify ident to satisy pylint * Move default name calculation to config validation * Add test folder * Drop unused code * Add tests for config flow import
13 lines
363 B
Python
13 lines
363 B
Python
"""Constants used for arcam."""
|
|
DOMAIN = "arcam_fmj"
|
|
|
|
SIGNAL_CLIENT_STARTED = "arcam.client_started"
|
|
SIGNAL_CLIENT_STOPPED = "arcam.client_stopped"
|
|
SIGNAL_CLIENT_DATA = "arcam.client_data"
|
|
|
|
DEFAULT_PORT = 50000
|
|
DEFAULT_NAME = "Arcam FMJ"
|
|
DEFAULT_SCAN_INTERVAL = 5
|
|
|
|
DOMAIN_DATA_ENTRIES = "{}.entries".format(DOMAIN)
|
|
DOMAIN_DATA_CONFIG = "{}.config".format(DOMAIN)
|