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

Classes

class  SonosMicrophoneSensorEntity
 
class  SonosPowerEntity
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
string ATTR_BATTERY_POWER_SOURCE = "power_source"
 

Detailed Description

Entity representing a Sonos power sensor.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.sonos.binary_sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up Sonos from a config entry.

Definition at line 28 of file binary_sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.sonos.binary_sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 25 of file binary_sensor.py.

◆ ATTR_BATTERY_POWER_SOURCE

string homeassistant.components.sonos.binary_sensor.ATTR_BATTERY_POWER_SOURCE = "power_source"

Definition at line 23 of file binary_sensor.py.