Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.tuya Namespace Reference

Namespaces

 alarm_control_panel
 
 binary_sensor
 
 button
 
 camera
 
 climate
 
 config_flow
 
 const
 
 cover
 
 diagnostics
 
 entity
 
 fan
 
 humidifier
 
 light
 
 number
 
 scene
 
 select
 
 sensor
 
 siren
 
 switch
 
 util
 
 vacuum
 

Classes

class  DeviceListener
 
class  HomeAssistantTuyaData
 
class  TokenListener
 

Functions

None async_remove_entry (HomeAssistant hass, TuyaConfigEntry entry)
 
bool async_setup_entry (HomeAssistant hass, TuyaConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, TuyaConfigEntry entry)
 
None cleanup_device_registry (HomeAssistant hass, Manager device_manager)
 

Variables

 TuyaConfigEntry
 

Detailed Description

Support for Tuya Smart devices.

Function Documentation

◆ async_remove_entry()

None homeassistant.components.tuya.async_remove_entry ( HomeAssistant  hass,
TuyaConfigEntry  entry 
)
Remove a config entry.

This will revoke the credentials from Tuya.

Definition at line 122 of file __init__.py.

◆ async_setup_entry()

bool homeassistant.components.tuya.async_setup_entry ( HomeAssistant  hass,
TuyaConfigEntry  entry 
)
Async setup hass config entry.

Definition at line 48 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.tuya.async_unload_entry ( HomeAssistant  hass,
TuyaConfigEntry  entry 
)
Unloading the Tuya platforms.

Definition at line 112 of file __init__.py.

◆ cleanup_device_registry()

None homeassistant.components.tuya.cleanup_device_registry ( HomeAssistant  hass,
Manager  device_manager 
)
Remove deleted device registry entry if there are no remaining entities.

Definition at line 102 of file __init__.py.

Variable Documentation

◆ TuyaConfigEntry

homeassistant.components.tuya.TuyaConfigEntry

Definition at line 38 of file __init__.py.