1 """Provides the DataUpdateCoordinator."""
3 from __future__
import annotations
10 from .coordinator
import GardenaBluetoothCoordinator
14 """Coordinator entity for Gardena Bluetooth."""
16 _attr_has_entity_name =
True
19 self, coordinator: GardenaBluetoothCoordinator, context: Any =
None
21 """Initialize coordinator entity."""
22 super().
__init__(coordinator, context)
27 """Return if entity is available."""
28 return self.coordinator.last_update_success
and self._attr_available
32 """Coordinator entity for entities with entity description."""
36 coordinator: GardenaBluetoothCoordinator,
37 description: EntityDescription,
40 """Initialize description entity."""
41 super().
__init__(coordinator, context)
None __init__(self, GardenaBluetoothCoordinator coordinator, EntityDescription description, set[str] context)
None __init__(self, GardenaBluetoothCoordinator coordinator, Any context=None)