mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Simplify LivisiEntity inheritance (#89424)
* We don't need to inherit Entity. The CoordinatorEntity already does that. * update imports
This commit is contained in:
parent
1a4b14c217
commit
5828e9a8d2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user