mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00

* Add data coordinator to incomfort integration * Remove unused code and redundant comment, move entity class * Use freezer * Cleanup snapshot * Use entry.runtime_data * Use freezer, use mock_config_entry * Use tick * Use ConfigEntryError while we do not yet support a re-auth flow, update tests * Use tick with async_fire_time_changed
12 lines
331 B
Python
12 lines
331 B
Python
"""Common entity classes for InComfort integration."""
|
|
|
|
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
|
|
|
from .coordinator import InComfortDataCoordinator
|
|
|
|
|
|
class IncomfortEntity(CoordinatorEntity[InComfortDataCoordinator]):
|
|
"""Base class for all InComfort entities."""
|
|
|
|
_attr_has_entity_name = True
|