Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.apple_tv.remote Namespace Reference

Classes

class  AppleTVRemote
 

Functions

None async_setup_entry (HomeAssistant hass, AppleTvConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary COMMAND_TO_ATTRIBUTE
 
int PARALLEL_UPDATES = 0
 

Detailed Description

Remote control support for Apple TV.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.apple_tv.remote.async_setup_entry ( HomeAssistant  hass,
AppleTvConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Load Apple TV remote based on a config entry.

Definition at line 38 of file remote.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.apple_tv.remote._LOGGER = logging.getLogger(__name__)
private

Definition at line 25 of file remote.py.

◆ COMMAND_TO_ATTRIBUTE

dictionary homeassistant.components.apple_tv.remote.COMMAND_TO_ATTRIBUTE
Initial value:
1 = {
2  "wakeup": ("power", "turn_on"),
3  "suspend": ("power", "turn_off"),
4  "turn_on": ("power", "turn_on"),
5  "turn_off": ("power", "turn_off"),
6  "volume_up": ("audio", "volume_up"),
7  "volume_down": ("audio", "volume_down"),
8 }

Definition at line 28 of file remote.py.

◆ PARALLEL_UPDATES

int homeassistant.components.apple_tv.remote.PARALLEL_UPDATES = 0

Definition at line 27 of file remote.py.