mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 18:57:57 +00:00
Add PARALLEL_UPDATES to Husqvarna Automower (#131662)
This commit is contained in:
parent
f3964596de
commit
7a107cac41
@ -22,6 +22,8 @@ from .entity import (
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class AutomowerButtonEntityDescription(ButtonEntityDescription):
|
class AutomowerButtonEntityDescription(ButtonEntityDescription):
|
||||||
|
@ -22,6 +22,10 @@ from .const import DOMAIN
|
|||||||
from .coordinator import AutomowerDataUpdateCoordinator
|
from .coordinator import AutomowerDataUpdateCoordinator
|
||||||
from .entity import AutomowerAvailableEntity, handle_sending_exception
|
from .entity import AutomowerAvailableEntity, handle_sending_exception
|
||||||
|
|
||||||
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
DOCKED_ACTIVITIES = (MowerActivities.PARKED_IN_CS, MowerActivities.CHARGING)
|
DOCKED_ACTIVITIES = (MowerActivities.PARKED_IN_CS, MowerActivities.CHARGING)
|
||||||
MOWING_ACTIVITIES = (
|
MOWING_ACTIVITIES = (
|
||||||
MowerActivities.MOWING,
|
MowerActivities.MOWING,
|
||||||
@ -42,9 +46,6 @@ PARK = "park"
|
|||||||
OVERRIDE_MODES = [MOW, PARK]
|
OVERRIDE_MODES = [MOW, PARK]
|
||||||
|
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
entry: AutomowerConfigEntry,
|
entry: AutomowerConfigEntry,
|
||||||
|
@ -24,6 +24,8 @@ from .entity import (
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
def _async_get_cutting_height(data: MowerAttributes) -> int:
|
def _async_get_cutting_height(data: MowerAttributes) -> int:
|
||||||
|
@ -16,6 +16,7 @@ from .entity import AutomowerControlEntity, handle_sending_exception
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
HEADLIGHT_MODES: list = [
|
HEADLIGHT_MODES: list = [
|
||||||
HeadlightModes.ALWAYS_OFF.lower(),
|
HeadlightModes.ALWAYS_OFF.lower(),
|
||||||
|
@ -19,6 +19,8 @@ from .entity import (
|
|||||||
handle_sending_exception,
|
handle_sending_exception,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user