Private Attributes | |
| _attr_available | |
| _attr_unique_id | |
| _client | |
| _entry_id | |
Static Private Attributes | |
| bool | _attr_should_poll = False |
| tuple | _attr_supported_features |
Additional Inherited Members | |
Public Attributes inherited from homeassistant.components.media_player.MediaPlayerEntity | |
| state | |
Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| device_entry | |
| entity_id | |
| hass | |
| parallel_updates | |
| platform | |
| registry_entry | |
Static Public Attributes inherited from homeassistant.components.media_player.MediaPlayerEntity | |
| bool | |
| MediaPlayerEntityFeature | |
| None | |
Static Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| bool | |
| EntityPlatform | |
| HomeAssistant | |
| None | |
| StateInfo | |
| StateType | |
| str | |
Representation of a Snapcast client device.
Definition at line 203 of file media_player.py.
| def homeassistant.components.snapcast.media_player.SnapcastClientDevice.__init__ | ( | self, | |
| client, | |||
| uid_part, | |||
| entry_id | |||
| ) |
Initialize the Snapcast client device.
Definition at line 213 of file media_player.py.
| None homeassistant.components.snapcast.media_player.SnapcastClientDevice.async_added_to_hass | ( | self | ) |
Subscribe to client events.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 221 of file media_player.py.
| def homeassistant.components.snapcast.media_player.SnapcastClientDevice.async_join | ( | self, | |
| master | |||
| ) |
Join the group of the master player.
Definition at line 305 of file media_player.py.
| None homeassistant.components.snapcast.media_player.SnapcastClientDevice.async_mute_volume | ( | self, | |
| bool | mute | ||
| ) |
Send the mute command.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 295 of file media_player.py.
| def homeassistant.components.snapcast.media_player.SnapcastClientDevice.async_restore | ( | self | ) |
Restore the client state.
Definition at line 332 of file media_player.py.
| None homeassistant.components.snapcast.media_player.SnapcastClientDevice.async_select_source | ( | self, | |
| str | source | ||
| ) |
Set input source.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 288 of file media_player.py.
| def homeassistant.components.snapcast.media_player.SnapcastClientDevice.async_set_latency | ( | self, | |
| latency | |||
| ) |
Set the latency of the client.
Definition at line 337 of file media_player.py.
| None homeassistant.components.snapcast.media_player.SnapcastClientDevice.async_set_volume_level | ( | self, | |
| float | volume | ||
| ) |
Set the volume level.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 300 of file media_player.py.
| def homeassistant.components.snapcast.media_player.SnapcastClientDevice.async_unjoin | ( | self | ) |
Unjoin the group the player is currently in.
Definition at line 323 of file media_player.py.
| None homeassistant.components.snapcast.media_player.SnapcastClientDevice.async_will_remove_from_hass | ( | self | ) |
Disconnect client object when removed.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 226 of file media_player.py.
| def homeassistant.components.snapcast.media_player.SnapcastClientDevice.extra_state_attributes | ( | self | ) |
Return the state attributes.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 276 of file media_player.py.
| def homeassistant.components.snapcast.media_player.SnapcastClientDevice.identifier | ( | self | ) |
Return the snapcast identifier.
Definition at line 237 of file media_player.py.
| def homeassistant.components.snapcast.media_player.SnapcastClientDevice.is_volume_muted | ( | self | ) |
Volume muted.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 257 of file media_player.py.
| def homeassistant.components.snapcast.media_player.SnapcastClientDevice.latency | ( | self | ) |
Latency for Client.
Definition at line 284 of file media_player.py.
| def homeassistant.components.snapcast.media_player.SnapcastClientDevice.name | ( | self | ) |
Return the name of the device.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 242 of file media_player.py.
| None homeassistant.components.snapcast.media_player.SnapcastClientDevice.set_availability | ( | self, | |
| bool | available | ||
| ) |
Set availability of group.
Definition at line 231 of file media_player.py.
| def homeassistant.components.snapcast.media_player.SnapcastClientDevice.snapshot | ( | self | ) |
Snapshot the client state.
Definition at line 328 of file media_player.py.
| def homeassistant.components.snapcast.media_player.SnapcastClientDevice.source | ( | self | ) |
Return the current input source.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 247 of file media_player.py.
| def homeassistant.components.snapcast.media_player.SnapcastClientDevice.source_list | ( | self | ) |
List of available input sources.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 262 of file media_player.py.
| MediaPlayerState | None homeassistant.components.snapcast.media_player.SnapcastClientDevice.state | ( | self | ) |
Return the state of the player.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 267 of file media_player.py.
| def homeassistant.components.snapcast.media_player.SnapcastClientDevice.volume_level | ( | self | ) |
Return the volume level.
Reimplemented from homeassistant.components.media_player.MediaPlayerEntity.
Definition at line 252 of file media_player.py.
|
private |
Definition at line 215 of file media_player.py.
|
staticprivate |
Definition at line 206 of file media_player.py.
|
staticprivate |
Definition at line 207 of file media_player.py.
|
private |
Definition at line 218 of file media_player.py.
|
private |
Definition at line 216 of file media_player.py.
|
private |
Definition at line 219 of file media_player.py.