mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 03:37:07 +00:00
Respect availability of parent class in Husqvarna Automower (#147649)
This commit is contained in:
parent
5129f89086
commit
b630fb0520
@ -90,7 +90,9 @@ class AutomowerButtonEntity(AutomowerAvailableEntity, ButtonEntity):
|
|||||||
@property
|
@property
|
||||||
def available(self) -> bool:
|
def available(self) -> bool:
|
||||||
"""Return the available attribute of the entity."""
|
"""Return the available attribute of the entity."""
|
||||||
return self.entity_description.available_fn(self.mower_attributes)
|
return super().available and self.entity_description.available_fn(
|
||||||
|
self.mower_attributes
|
||||||
|
)
|
||||||
|
|
||||||
@handle_sending_exception()
|
@handle_sending_exception()
|
||||||
async def async_press(self) -> None:
|
async def async_press(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user