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 GitHub
parent 5129f89086
commit b630fb0520
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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: