Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.lcn.services.Led Class Reference
Inheritance diagram for homeassistant.components.lcn.services.Led:
[legend]
Collaboration diagram for homeassistant.components.lcn.services.Led:
[legend]

Public Member Functions

None async_call_service (self, ServiceCall service)
 
- Public Member Functions inherited from homeassistant.components.lcn.services.LcnServiceCall
None __init__ (self, HomeAssistant hass)
 
DeviceConnectionType get_device_connection (self, ServiceCall service)
 

Static Public Attributes

 schema
 
- Static Public Attributes inherited from homeassistant.components.lcn.services.LcnServiceCall
 schema = vol.Schema({vol.Required(CONF_ADDRESS): is_address})
 

Additional Inherited Members

- Public Attributes inherited from homeassistant.components.lcn.services.LcnServiceCall
 hass
 

Detailed Description

Set the led state.

Definition at line 168 of file services.py.

Member Function Documentation

◆ async_call_service()

None homeassistant.components.lcn.services.Led.async_call_service (   self,
ServiceCall  service 
)
Execute service call.

Reimplemented from homeassistant.components.lcn.services.LcnServiceCall.

Definition at line 178 of file services.py.

Member Data Documentation

◆ schema

homeassistant.components.lcn.services.Led.schema
static
Initial value:
= LcnServiceCall.schema.extend(
{
vol.Required(CONF_LED): vol.All(vol.Upper, vol.In(LED_PORTS)),
vol.Required(CONF_STATE): vol.All(vol.Upper, vol.In(LED_STATUS)),
}
)

Definition at line 171 of file services.py.


The documentation for this class was generated from the following file: