Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.tplink.entity Namespace Reference

Classes

class  CoordinatedTPLinkEntity
 
class  CoordinatedTPLinkFeatureEntity
 
class  TPLinkFeatureEntityDescription
 

Functions

def _T
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary DEVICETYPES_WITH_SPECIALIZED_PLATFORMS
 
dictionary EXCLUDED_FEATURES
 
dictionary FEATURE_CATEGORY_TO_ENTITY_CATEGORY
 
dictionary FEATURES_ALLOW_LIST
 
dictionary LEGACY_KEY_MAPPING
 

Detailed Description

Common code for tplink.

Function Documentation

◆ _T()

def homeassistant.components.tplink.entity._T
private

Definition at line 94 of file entity.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.tplink.entity._LOGGER = logging.getLogger(__name__)
private

Definition at line 41 of file entity.py.

◆ DEVICETYPES_WITH_SPECIALIZED_PLATFORMS

dictionary homeassistant.components.tplink.entity.DEVICETYPES_WITH_SPECIALIZED_PLATFORMS
Initial value:
1 = {
2  DeviceType.Bulb,
3  DeviceType.LightStrip,
4  DeviceType.Dimmer,
5  DeviceType.Fan,
6  DeviceType.Thermostat,
7 }

Definition at line 52 of file entity.py.

◆ EXCLUDED_FEATURES

dictionary homeassistant.components.tplink.entity.EXCLUDED_FEATURES
Initial value:
1 = {
2  # update
3  "current_firmware_version",
4  "available_firmware_version",
5  "update_available",
6  "check_latest_firmware",
7  # siren
8  "alarm",
9 }

Definition at line 68 of file entity.py.

◆ FEATURE_CATEGORY_TO_ENTITY_CATEGORY

dictionary homeassistant.components.tplink.entity.FEATURE_CATEGORY_TO_ENTITY_CATEGORY
Initial value:
1 = {
2  Feature.Category.Config: EntityCategory.CONFIG,
3  Feature.Category.Info: EntityCategory.DIAGNOSTIC,
4  Feature.Category.Debug: EntityCategory.DIAGNOSTIC,
5 }

Definition at line 44 of file entity.py.

◆ FEATURES_ALLOW_LIST

dictionary homeassistant.components.tplink.entity.FEATURES_ALLOW_LIST
Initial value:
1 = {
2  # lights have current_consumption and a specialized platform
3  "current_consumption"
4 }

Definition at line 61 of file entity.py.

◆ LEGACY_KEY_MAPPING

dictionary homeassistant.components.tplink.entity.LEGACY_KEY_MAPPING
Initial value:
1 = {
2  "current": ATTR_CURRENT_A,
3  "current_consumption": ATTR_CURRENT_POWER_W,
4  "consumption_today": ATTR_TODAY_ENERGY_KWH,
5  "consumption_total": ATTR_TOTAL_ENERGY_KWH,
6 }

Definition at line 79 of file entity.py.