Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.thinkingcleaner.switch Namespace Reference

Classes

class  ThinkingCleanerSwitch
 

Functions

None setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 MIN_TIME_BETWEEN_FORCED_SCANS = timedelta(milliseconds=100)
 
 MIN_TIME_BETWEEN_SCANS = timedelta(seconds=10)
 
int MIN_TIME_TO_LOCK_UPDATE = 5
 
 MIN_TIME_TO_WAIT = timedelta(seconds=5)
 
 PLATFORM_SCHEMA = SWITCH_PLATFORM_SCHEMA.extend({vol.Optional(CONF_HOST): cv.string})
 

Detailed Description

Support for ThinkingCleaner switches.

Function Documentation

◆ setup_platform()

None homeassistant.components.thinkingcleaner.switch.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the ThinkingCleaner platform.

Definition at line 48 of file switch.py.

Variable Documentation

◆ MIN_TIME_BETWEEN_FORCED_SCANS

homeassistant.components.thinkingcleaner.switch.MIN_TIME_BETWEEN_FORCED_SCANS = timedelta(milliseconds=100)

Definition at line 25 of file switch.py.

◆ MIN_TIME_BETWEEN_SCANS

homeassistant.components.thinkingcleaner.switch.MIN_TIME_BETWEEN_SCANS = timedelta(seconds=10)

Definition at line 24 of file switch.py.

◆ MIN_TIME_TO_LOCK_UPDATE

int homeassistant.components.thinkingcleaner.switch.MIN_TIME_TO_LOCK_UPDATE = 5

Definition at line 28 of file switch.py.

◆ MIN_TIME_TO_WAIT

homeassistant.components.thinkingcleaner.switch.MIN_TIME_TO_WAIT = timedelta(seconds=5)

Definition at line 27 of file switch.py.

◆ PLATFORM_SCHEMA

homeassistant.components.thinkingcleaner.switch.PLATFORM_SCHEMA = SWITCH_PLATFORM_SCHEMA.extend({vol.Optional(CONF_HOST): cv.string})

Definition at line 45 of file switch.py.