Simplify LivisiEntity inheritance (#89424)

* We don't need to inherit Entity. The CoordinatorEntity already does that.

* update imports
This commit is contained in:
Felix Rotthowe 2023-03-09 09:27:53 +01:00 committed by GitHub
parent 1a4b14c217
commit 5828e9a8d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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