Functions | |
| str|None | _find_target_identifier (Any instance, SoCo|None fallback_soco) |
| def | _T |
| str | hostname_to_uid (str hostname) |
| set[SoCo] | sync_get_visible_zones (SoCo soco) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| _SonosEntitiesType | |
| string | UID_POSTFIX = "01400" |
| string | UID_PREFIX = "RINCON_" |
Helper methods for common tasks.
|
private |
Extract the best available target identifier from the provided instance object.
Definition at line 89 of file helpers.py.
|
private |
Definition at line 37 of file helpers.py.
| str homeassistant.components.sonos.helpers.hostname_to_uid | ( | str | hostname | ) |
Convert a Sonos hostname to a uid.
Definition at line 107 of file helpers.py.
| set[SoCo] homeassistant.components.sonos.helpers.sync_get_visible_zones | ( | SoCo | soco | ) |
Ensure I/O attributes are cached and return visible zones.
Definition at line 118 of file helpers.py.
|
private |
Definition at line 27 of file helpers.py.
|
private |
Definition at line 29 of file helpers.py.
| string homeassistant.components.sonos.helpers.UID_POSTFIX = "01400" |
Definition at line 25 of file helpers.py.
| string homeassistant.components.sonos.helpers.UID_PREFIX = "RINCON_" |
Definition at line 24 of file helpers.py.