mirror of
https://github.com/home-assistant/core.git
synced 2026-07-01 03:36:05 +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
529 B
Python
17 lines
529 B
Python
"""Base entity for the Fresh-r integration."""
|
|
|
|
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
|
|
|
from .coordinator import FreshrReadingsCoordinator
|
|
|
|
|
|
class FreshrEntity(CoordinatorEntity[FreshrReadingsCoordinator]):
|
|
"""Base class for Fresh-r entities."""
|
|
|
|
_attr_has_entity_name = True
|
|
|
|
def __init__(self, coordinator: FreshrReadingsCoordinator) -> None:
|
|
"""Initialize the Fresh-r entity."""
|
|
super().__init__(coordinator)
|
|
self._attr_device_info = coordinator.device_info
|