Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.demo.fan Namespace Reference

Classes

class  AsyncDemoPercentageFan
 
class  BaseDemoFan
 
class  DemoPercentageFan
 

Functions

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

Variables

tuple FULL_SUPPORT
 
tuple LIMITED_SUPPORT
 
string PRESET_MODE_AUTO = "auto"
 
string PRESET_MODE_ON = "on"
 
string PRESET_MODE_SLEEP = "sleep"
 
string PRESET_MODE_SMART = "smart"
 

Detailed Description

Demo fan platform that has a fake fan.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.demo.fan.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up the Demo config entry.

Definition at line 29 of file fan.py.

Variable Documentation

◆ FULL_SUPPORT

tuple homeassistant.components.demo.fan.FULL_SUPPORT
Initial value:
1 = (
2  FanEntityFeature.SET_SPEED
3  | FanEntityFeature.OSCILLATE
4  | FanEntityFeature.DIRECTION
5  | FanEntityFeature.TURN_OFF
6  | FanEntityFeature.TURN_ON
7 )

Definition at line 17 of file fan.py.

◆ LIMITED_SUPPORT

tuple homeassistant.components.demo.fan.LIMITED_SUPPORT
Initial value:
1 = (
2  FanEntityFeature.SET_SPEED | FanEntityFeature.TURN_OFF | FanEntityFeature.TURN_ON
3 )

Definition at line 24 of file fan.py.

◆ PRESET_MODE_AUTO

string homeassistant.components.demo.fan.PRESET_MODE_AUTO = "auto"

Definition at line 12 of file fan.py.

◆ PRESET_MODE_ON

string homeassistant.components.demo.fan.PRESET_MODE_ON = "on"

Definition at line 15 of file fan.py.

◆ PRESET_MODE_SLEEP

string homeassistant.components.demo.fan.PRESET_MODE_SLEEP = "sleep"

Definition at line 14 of file fan.py.

◆ PRESET_MODE_SMART

string homeassistant.components.demo.fan.PRESET_MODE_SMART = "smart"

Definition at line 13 of file fan.py.