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

View File

@@ -90,7 +90,9 @@ class AutomowerButtonEntity(AutomowerAvailableEntity, ButtonEntity):
@property
def available(self) -> bool:
"""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()
async def async_press(self) -> None: