mirror of
https://github.com/home-assistant/core.git
synced 2026-05-18 22:40:15 +01:00
d766aae436
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
17 lines
497 B
Python
17 lines
497 B
Python
"""Base entity for MELCloud integration."""
|
|
|
|
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
|
|
|
from .coordinator import MelCloudDeviceUpdateCoordinator
|
|
|
|
|
|
class MelCloudEntity(CoordinatorEntity[MelCloudDeviceUpdateCoordinator]):
|
|
"""Base class for MELCloud entities."""
|
|
|
|
_attr_has_entity_name = True
|
|
|
|
@property
|
|
def available(self) -> bool:
|
|
"""Return True if entity is available."""
|
|
return super().available and self.coordinator.device_available
|