Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.wled.number Namespace Reference

Classes

class  WLEDNumber
 
class  WLEDNumberEntityDescription
 

Functions

None async_setup_entry (HomeAssistant hass, WLEDConfigEntry entry, AddEntitiesCallback async_add_entities)
 
None async_update_segments (WLEDDataUpdateCoordinator coordinator, set[int] current_ids, AddEntitiesCallback async_add_entities)
 

Variables

list NUMBERS
 
int PARALLEL_UPDATES = 1
 

Detailed Description

Support for LED numbers.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.wled.number.async_setup_entry ( HomeAssistant  hass,
WLEDConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up WLED number based on a config entry.

Definition at line 25 of file number.py.

◆ async_update_segments()

None homeassistant.components.wled.number.async_update_segments ( WLEDDataUpdateCoordinator  coordinator,
set[int]  current_ids,
AddEntitiesCallback  async_add_entities 
)
Update segments.

Definition at line 130 of file number.py.

Variable Documentation

◆ NUMBERS

list homeassistant.components.wled.number.NUMBERS
Initial value:
1 = [
2  WLEDNumberEntityDescription(
3  key=ATTR_SPEED,
4  translation_key="speed",
5  entity_category=EntityCategory.CONFIG,
6  native_step=1,
7  native_min_value=0,
8  native_max_value=255,
9  value_fn=lambda segment: segment.speed,
10  ),
11  WLEDNumberEntityDescription(
12  key=ATTR_INTENSITY,
13  translation_key="intensity",
14  entity_category=EntityCategory.CONFIG,
15  native_step=1,
16  native_min_value=0,
17  native_max_value=255,
18  value_fn=lambda segment: int(segment.intensity),
19  ),
20 ]

Definition at line 50 of file number.py.

◆ PARALLEL_UPDATES

int homeassistant.components.wled.number.PARALLEL_UPDATES = 1

Definition at line 22 of file number.py.