Add PARALLEL_UPDATES to Husqvarna Automower (#131662)

This commit is contained in:
Thomas55555 2024-11-26 21:09:45 +01:00 committed by GitHub
parent f3964596de
commit 7a107cac41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 11 additions and 3 deletions

View File

@ -22,6 +22,8 @@ from .entity import (
_LOGGER = logging.getLogger(__name__)
PARALLEL_UPDATES = 1
@dataclass(frozen=True, kw_only=True)
class AutomowerButtonEntityDescription(ButtonEntityDescription):

View File

@ -22,6 +22,10 @@ from .const import DOMAIN
from .coordinator import AutomowerDataUpdateCoordinator
from .entity import AutomowerAvailableEntity, handle_sending_exception
_LOGGER = logging.getLogger(__name__)
PARALLEL_UPDATES = 1
DOCKED_ACTIVITIES = (MowerActivities.PARKED_IN_CS, MowerActivities.CHARGING)
MOWING_ACTIVITIES = (
MowerActivities.MOWING,
@ -42,9 +46,6 @@ PARK = "park"
OVERRIDE_MODES = [MOW, PARK]
_LOGGER = logging.getLogger(__name__)
async def async_setup_entry(
hass: HomeAssistant,
entry: AutomowerConfigEntry,

View File

@ -24,6 +24,8 @@ from .entity import (
_LOGGER = logging.getLogger(__name__)
PARALLEL_UPDATES = 1
@callback
def _async_get_cutting_height(data: MowerAttributes) -> int:

View File

@ -16,6 +16,7 @@ from .entity import AutomowerControlEntity, handle_sending_exception
_LOGGER = logging.getLogger(__name__)
PARALLEL_UPDATES = 1
HEADLIGHT_MODES: list = [
HeadlightModes.ALWAYS_OFF.lower(),

View File

@ -19,6 +19,8 @@ from .entity import (
handle_sending_exception,
)
PARALLEL_UPDATES = 1
_LOGGER = logging.getLogger(__name__)