mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 22:55:10 +02:00
Simplify LivisiEntity inheritance (#89424)
* We don't need to inherit Entity. The CoordinatorEntity already does that. * update imports
This commit is contained in:
@@ -9,14 +9,14 @@ from aiolivisi.const import CAPABILITY_MAP
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||
from homeassistant.helpers.entity import DeviceInfo, Entity
|
||||
from homeassistant.helpers.entity import DeviceInfo
|
||||
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
||||
|
||||
from .const import DOMAIN, LIVISI_REACHABILITY_CHANGE
|
||||
from .coordinator import LivisiDataUpdateCoordinator
|
||||
|
||||
|
||||
class LivisiEntity(CoordinatorEntity[LivisiDataUpdateCoordinator], Entity):
|
||||
class LivisiEntity(CoordinatorEntity[LivisiDataUpdateCoordinator]):
|
||||
"""Represents a base livisi entity."""
|
||||
|
||||
_attr_has_entity_name = True
|
||||
|
Reference in New Issue
Block a user