Home Assistant Unofficial Reference 2024.12.1
__init__.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.components.binary_sensor.BinarySensorDeviceClass
 
class  homeassistant.components.binary_sensor.BinarySensorEntity
 
class  homeassistant.components.binary_sensor.BinarySensorEntityDescription
 

Namespaces

 homeassistant.components.binary_sensor
 

Functions

bool homeassistant.components.binary_sensor.async_setup (HomeAssistant hass, ConfigType config)
 
bool homeassistant.components.binary_sensor.async_setup_entry (HomeAssistant hass, ConfigEntry entry)
 
bool homeassistant.components.binary_sensor.async_unload_entry (HomeAssistant hass, ConfigEntry entry)
 

Variables

 homeassistant.components.binary_sensor.__all__ = all_with_deprecated_constants(globals())
 
 homeassistant.components.binary_sensor.__dir__
 
 homeassistant.components.binary_sensor.__getattr__ = partial(check_if_deprecated_constant, module_globals=globals())
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_BATTERY
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_BATTERY_CHARGING
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_CO
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_COLD
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_CONNECTIVITY
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_DOOR
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_GARAGE_DOOR
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_GAS
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_HEAT
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_LIGHT
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_LOCK
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_MOISTURE
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_MOTION
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_MOVING
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_OCCUPANCY
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_OPENING
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_PLUG
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_POWER
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_PRESENCE
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_PROBLEM
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_RUNNING
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_SAFETY
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_SMOKE
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_SOUND
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_TAMPER
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_UPDATE
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_VIBRATION
 
 homeassistant.components.binary_sensor._DEPRECATED_DEVICE_CLASS_WINDOW
 
 homeassistant.components.binary_sensor._LOGGER = logging.getLogger(__name__)
 
dictionary homeassistant.components.binary_sensor.CACHED_PROPERTIES_WITH_ATTR_
 
list homeassistant.components.binary_sensor.DEVICE_CLASSES = [cls.value for cls in BinarySensorDeviceClass]
 
 homeassistant.components.binary_sensor.DEVICE_CLASSES_SCHEMA = vol.All(vol.Lower, vol.Coerce(BinarySensorDeviceClass))
 
string homeassistant.components.binary_sensor.DOMAIN = "binary_sensor"
 
string homeassistant.components.binary_sensor.ENTITY_ID_FORMAT = DOMAIN + ".{}"
 
 homeassistant.components.binary_sensor.PLATFORM_SCHEMA = cv.PLATFORM_SCHEMA
 
 homeassistant.components.binary_sensor.PLATFORM_SCHEMA_BASE = cv.PLATFORM_SCHEMA_BASE
 
 homeassistant.components.binary_sensor.SCAN_INTERVAL = timedelta(seconds=30)