Respect availability of parent class in Husqvarna Automower (#147649)

This commit is contained in:
Thomas55555 2025-06-27 19:38:42 +02:00 committed by Franck Nijhof
parent 47f3bf29dd
commit 0b5d2ab8e4
No known key found for this signature in database
GPG Key ID: AB33ADACE7101952

View File

@ -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: