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

Classes

class  LookinMedia
 

Functions

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

Variables

dictionary _FUNCTION_NAME_TO_FEATURE
 
dictionary _TYPE_TO_DEVICE_CLASS
 
 LOGGER = logging.getLogger(__name__)
 

Detailed Description

The lookin integration light platform.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.lookin.media_player.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up the media_player platform for lookin from a config entry.

Definition at line 44 of file media_player.py.

Variable Documentation

◆ _FUNCTION_NAME_TO_FEATURE

dictionary homeassistant.components.lookin.media_player._FUNCTION_NAME_TO_FEATURE
private
Initial value:
1 = {
2  "power": MediaPlayerEntityFeature.TURN_OFF,
3  "poweron": MediaPlayerEntityFeature.TURN_ON,
4  "poweroff": MediaPlayerEntityFeature.TURN_OFF,
5  "mute": MediaPlayerEntityFeature.VOLUME_MUTE,
6  "volup": MediaPlayerEntityFeature.VOLUME_STEP,
7  "chup": MediaPlayerEntityFeature.NEXT_TRACK,
8  "chdown": MediaPlayerEntityFeature.PREVIOUS_TRACK,
9  "mode": MediaPlayerEntityFeature.SELECT_SOURCE,
10 }

Definition at line 32 of file media_player.py.

◆ _TYPE_TO_DEVICE_CLASS

dictionary homeassistant.components.lookin.media_player._TYPE_TO_DEVICE_CLASS
private
Initial value:
1 = {
2  "01": MediaPlayerDeviceClass.TV,
3  "02": MediaPlayerDeviceClass.RECEIVER,
4 }

Definition at line 27 of file media_player.py.

◆ LOGGER

homeassistant.components.lookin.media_player.LOGGER = logging.getLogger(__name__)

Definition at line 25 of file media_player.py.