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

Classes

class  AutomowerNumberEntity
 
class  AutomowerNumberEntityDescription
 
class  WorkAreaNumberEntity
 
class  WorkAreaNumberEntityDescription
 

Functions

int _async_get_cutting_height (MowerAttributes data)
 
None async_set_cutting_height (AutomowerSession session, str mower_id, float cheight)
 
None async_set_work_area_cutting_height (AutomowerDataUpdateCoordinator coordinator, str mower_id, float cheight, int work_area_id)
 
None async_setup_entry (HomeAssistant hass, AutomowerConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
int PARALLEL_UPDATES = 1
 

Detailed Description

Creates the number entities for the mower.

Function Documentation

◆ _async_get_cutting_height()

int homeassistant.components.husqvarna_automower.number._async_get_cutting_height ( MowerAttributes  data)
private
Return the cutting height.

Definition at line 31 of file number.py.

◆ async_set_cutting_height()

None homeassistant.components.husqvarna_automower.number.async_set_cutting_height ( AutomowerSession  session,
str  mower_id,
float  cheight 
)
Set cutting height.

Definition at line 51 of file number.py.

◆ async_set_work_area_cutting_height()

None homeassistant.components.husqvarna_automower.number.async_set_work_area_cutting_height ( AutomowerDataUpdateCoordinator  coordinator,
str  mower_id,
float  cheight,
int  work_area_id 
)
Set cutting height for work area.

Definition at line 39 of file number.py.

◆ async_setup_entry()

None homeassistant.components.husqvarna_automower.number.async_setup_entry ( HomeAssistant  hass,
AutomowerConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up number platform.

Definition at line 107 of file number.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.husqvarna_automower.number._LOGGER = logging.getLogger(__name__)
private

Definition at line 25 of file number.py.

◆ PARALLEL_UPDATES

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

Definition at line 27 of file number.py.