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

Classes

class  AutomowerAvailableEntity
 
class  AutomowerBaseEntity
 
class  AutomowerControlEntity
 
class  WorkAreaAvailableEntity
 
class  WorkAreaControlEntity
 

Functions

bool _check_error_free (MowerAttributes mower_attributes)
 
str _work_area_translation_key (int work_area_id, str key)
 
Callable[[Callable[..., Awaitable[Any]]], Callable[..., Coroutine[Any, Any, None]]] handle_sending_exception (bool poll_after_sending=False)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
tuple ERROR_ACTIVITIES
 
list ERROR_STATES
 

Detailed Description

Platform for Husqvarna Automower base entity.

Function Documentation

◆ _check_error_free()

bool homeassistant.components.husqvarna_automower.entity._check_error_free ( MowerAttributes  mower_attributes)
private
Check if the mower has any errors.

Definition at line 39 of file entity.py.

◆ _work_area_translation_key()

str homeassistant.components.husqvarna_automower.entity._work_area_translation_key ( int  work_area_id,
str  key 
)
private
Return the translation key.

Definition at line 48 of file entity.py.

◆ handle_sending_exception()

Callable[ [Callable[..., Awaitable[Any]]], Callable[..., Coroutine[Any, Any, None]] ] homeassistant.components.husqvarna_automower.entity.handle_sending_exception ( bool   poll_after_sending = False)
Handle exceptions while sending a command and optionally refresh coordinator.

Definition at line 55 of file entity.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 20 of file entity.py.

◆ ERROR_ACTIVITIES

tuple homeassistant.components.husqvarna_automower.entity.ERROR_ACTIVITIES
Initial value:
1 = (
2  MowerActivities.STOPPED_IN_GARDEN,
3  MowerActivities.UNKNOWN,
4  MowerActivities.NOT_APPLICABLE,
5 )

Definition at line 22 of file entity.py.

◆ ERROR_STATES

list homeassistant.components.husqvarna_automower.entity.ERROR_STATES
Initial value:
1 = [
2  MowerStates.FATAL_ERROR,
3  MowerStates.ERROR,
4  MowerStates.ERROR_AT_POWER_UP,
5  MowerStates.NOT_APPLICABLE,
6  MowerStates.UNKNOWN,
7  MowerStates.STOPPED,
8  MowerStates.OFF,
9 ]

Definition at line 27 of file entity.py.