* Implemented snapcast latency attributes * Code review changes and Snapcast maintenance Updated how entity services get called - now conforms to most current method * Cleanup tasks Moved constants into separate file Removed unnecessary logger message Remove unnecessary schemas * FIx linting errors * Sort imports * Update with requested change Better - use next() Co-Authored-By: Martin Hjelmare <marhje52@gmail.com> * Add guards for bad service calls * Add back in platform schema * Add check for unjoin service call * Fix lint/format * remove comma inserted by black Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
17 lines
380 B
Python
17 lines
380 B
Python
"""Constants for Snapcast."""
|
|
|
|
DATA_KEY = "snapcast"
|
|
|
|
GROUP_PREFIX = "snapcast_group_"
|
|
GROUP_SUFFIX = "Snapcast Group"
|
|
CLIENT_PREFIX = "snapcast_client_"
|
|
CLIENT_SUFFIX = "Snapcast Client"
|
|
|
|
SERVICE_SNAPSHOT = "snapshot"
|
|
SERVICE_RESTORE = "restore"
|
|
SERVICE_JOIN = "join"
|
|
SERVICE_UNJOIN = "unjoin"
|
|
SERVICE_SET_LATENCY = "set_latency"
|
|
|
|
ATTR_MASTER = "master"
|
|
ATTR_LATENCY = "latency"
|