mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
19 lines
541 B
Python
19 lines
541 B
Python
"""Provides the base entities."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
|
|
|
from .coordinator import ToGrillCoordinator
|
|
|
|
|
|
class ToGrillEntity(CoordinatorEntity[ToGrillCoordinator]):
|
|
"""Coordinator entity for Gardena Bluetooth."""
|
|
|
|
_attr_has_entity_name = True
|
|
|
|
def __init__(self, coordinator: ToGrillCoordinator) -> None:
|
|
"""Initialize coordinator entity."""
|
|
super().__init__(coordinator)
|
|
self._attr_device_info = coordinator.device_info
|