Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.homekit_controller.media_player Namespace Reference

Classes

class  HomeKitTelevision
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary HK_TO_HA_STATE
 

Detailed Description

Support for HomeKit Controller Televisions.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.homekit_controller.media_player.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up Homekit television.

Definition at line 41 of file media_player.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.homekit_controller.media_player._LOGGER = logging.getLogger(__name__)
private

Definition at line 31 of file media_player.py.

◆ HK_TO_HA_STATE

dictionary homeassistant.components.homekit_controller.media_player.HK_TO_HA_STATE
Initial value:
1 = {
2  CurrentMediaStateValues.PLAYING: MediaPlayerState.PLAYING,
3  CurrentMediaStateValues.PAUSED: MediaPlayerState.PAUSED,
4  CurrentMediaStateValues.STOPPED: MediaPlayerState.IDLE,
5 }

Definition at line 34 of file media_player.py.