Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.husqvarna_automower.entity.WorkAreaAvailableEntity Class Reference
Inheritance diagram for homeassistant.components.husqvarna_automower.entity.WorkAreaAvailableEntity:
[legend]
Collaboration diagram for homeassistant.components.husqvarna_automower.entity.WorkAreaAvailableEntity:
[legend]

Public Member Functions

None __init__ (self, str mower_id, AutomowerDataUpdateCoordinator coordinator, int work_area_id)
 
bool available (self)
 
WorkArea work_area_attributes (self)
 
dict[int, WorkArea] work_areas (self)
 
- Public Member Functions inherited from homeassistant.components.husqvarna_automower.entity.AutomowerBaseEntity
None __init__ (self, str mower_id, AutomowerDataUpdateCoordinator coordinator)
 
MowerAttributes mower_attributes (self)
 
- Public Member Functions inherited from homeassistant.helpers.update_coordinator.CoordinatorEntity
None __init__ (self, _DataUpdateCoordinatorT coordinator, Any context=None)
 
None async_update (self)
 

Public Attributes

 work_area_id
 
- Public Attributes inherited from homeassistant.components.husqvarna_automower.entity.AutomowerBaseEntity
 mower_id
 

Detailed Description

Base entity for work work areas.

Definition at line 135 of file entity.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.husqvarna_automower.entity.WorkAreaAvailableEntity.__init__ (   self,
str  mower_id,
AutomowerDataUpdateCoordinator  coordinator,
int  work_area_id 
)
Initialize AutomowerEntity.

Definition at line 138 of file entity.py.

Member Function Documentation

◆ available()

bool homeassistant.components.husqvarna_automower.entity.WorkAreaAvailableEntity.available (   self)
Return True if the work area is available and the mower has no errors.

Reimplemented from homeassistant.components.husqvarna_automower.entity.AutomowerAvailableEntity.

Definition at line 161 of file entity.py.

◆ work_area_attributes()

WorkArea homeassistant.components.husqvarna_automower.entity.WorkAreaAvailableEntity.work_area_attributes (   self)
Get the work area attributes of the current work area.

Definition at line 156 of file entity.py.

◆ work_areas()

dict[int, WorkArea] homeassistant.components.husqvarna_automower.entity.WorkAreaAvailableEntity.work_areas (   self)
Get the work areas from the mower attributes.

Definition at line 149 of file entity.py.

Member Data Documentation

◆ work_area_id

homeassistant.components.husqvarna_automower.entity.WorkAreaAvailableEntity.work_area_id

Definition at line 146 of file entity.py.


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