From 5828e9a8d231d426e68141c70ff01339c8e18c80 Mon Sep 17 00:00:00 2001 From: Felix Rotthowe Date: Thu, 9 Mar 2023 09:27:53 +0100 Subject: [PATCH] Simplify LivisiEntity inheritance (#89424) * We don't need to inherit Entity. The CoordinatorEntity already does that. * update imports --- homeassistant/components/livisi/entity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/livisi/entity.py b/homeassistant/components/livisi/entity.py index 613f55d1b7e..ebd2b813852 100644 --- a/homeassistant/components/livisi/entity.py +++ b/homeassistant/components/livisi/entity.py @@ -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