mirror of
https://github.com/home-assistant/core.git
synced 2026-08-28 10:16:02 -05:00
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Paulus Schoutsen <balloob@gmail.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
17 lines
507 B
Python
17 lines
507 B
Python
"""Base entity for the Flexit integration."""
|
|
|
|
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
|
|
|
from .coordinator import FlexitDataCoordinator
|
|
|
|
|
|
class FlexitEntity(CoordinatorEntity[FlexitDataCoordinator]):
|
|
"""Base class for Flexit entities."""
|
|
|
|
_attr_has_entity_name = True
|
|
|
|
def __init__(self, coordinator: FlexitDataCoordinator) -> None:
|
|
"""Initialize the entity."""
|
|
super().__init__(coordinator)
|
|
self._attr_device_info = coordinator.device_info
|