Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.switchbot.binary_sensor Namespace Reference

Classes

class  SwitchBotBinarySensor
 

Functions

None async_setup_entry (HomeAssistant hass, SwitchbotConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

 coordinator = entry.runtime_data
 
 device_class
 
 entity_category
 
 key
 
 name
 
int PARALLEL_UPDATES = 0
 
 translation_key
 

Detailed Description

Support for SwitchBot binary sensors.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.switchbot.binary_sensor.async_setup_entry ( HomeAssistant  hass,
SwitchbotConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)

Definition at line 70 of file binary_sensor.py.

Variable Documentation

◆ coordinator

homeassistant.components.switchbot.binary_sensor.coordinator = entry.runtime_data
Set up Switchbot curtain based on a config entry.

Definition at line 76 of file binary_sensor.py.

◆ device_class

homeassistant.components.switchbot.binary_sensor.device_class

Definition at line 28 of file binary_sensor.py.

◆ entity_category

homeassistant.components.switchbot.binary_sensor.entity_category

Definition at line 23 of file binary_sensor.py.

◆ key

homeassistant.components.switchbot.binary_sensor.key

Definition at line 21 of file binary_sensor.py.

◆ name

homeassistant.components.switchbot.binary_sensor.name

Definition at line 27 of file binary_sensor.py.

◆ PARALLEL_UPDATES

int homeassistant.components.switchbot.binary_sensor.PARALLEL_UPDATES = 0

Definition at line 17 of file binary_sensor.py.

◆ translation_key

homeassistant.components.switchbot.binary_sensor.translation_key

Definition at line 22 of file binary_sensor.py.