mirror of
https://github.com/home-assistant/core
synced 2024-08-31 05:57:13 +02:00
![BarrettLowe](/assets/img/avatar_default.png)
* 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>
18 lines
380 B
Python
18 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"
|