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

Classes

class  GC100BinarySensor
 

Functions

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

Variables

 _SENSORS_SCHEMA = vol.Schema({cv.string: cv.string})
 
 PLATFORM_SCHEMA
 

Detailed Description

Support for binary sensor using GC100.

Function Documentation

◆ setup_platform()

None homeassistant.components.gc100.binary_sensor.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the GC100 devices.

Definition at line 26 of file binary_sensor.py.

Variable Documentation

◆ _SENSORS_SCHEMA

homeassistant.components.gc100.binary_sensor._SENSORS_SCHEMA = vol.Schema({cv.string: cv.string})
private

Definition at line 19 of file binary_sensor.py.

◆ PLATFORM_SCHEMA

homeassistant.components.gc100.binary_sensor.PLATFORM_SCHEMA
Initial value:
1 = BINARY_SENSOR_PLATFORM_SCHEMA.extend(
2  {vol.Required(CONF_PORTS): vol.All(cv.ensure_list, [_SENSORS_SCHEMA])}
3 )

Definition at line 21 of file binary_sensor.py.