From 584066b809434aa6c88fd9a474d9342698d10610 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 4 Apr 2023 14:38:52 +0200 Subject: [PATCH] Rename renault coordinator and base entity (#90760) Refactor renault coordinator and base entity --- homeassistant/components/renault/binary_sensor.py | 2 +- homeassistant/components/renault/button.py | 2 +- .../renault/{renault_coordinator.py => coordinator.py} | 0 homeassistant/components/renault/device_tracker.py | 2 +- .../components/renault/{renault_entities.py => entity.py} | 2 +- homeassistant/components/renault/renault_vehicle.py | 2 +- homeassistant/components/renault/select.py | 2 +- homeassistant/components/renault/sensor.py | 4 ++-- 8 files changed, 8 insertions(+), 8 deletions(-) rename homeassistant/components/renault/{renault_coordinator.py => coordinator.py} (100%) rename homeassistant/components/renault/{renault_entities.py => entity.py} (96%) diff --git a/homeassistant/components/renault/binary_sensor.py b/homeassistant/components/renault/binary_sensor.py index c0db562bd8c..83d86745d90 100644 --- a/homeassistant/components/renault/binary_sensor.py +++ b/homeassistant/components/renault/binary_sensor.py @@ -18,7 +18,7 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.helpers.typing import StateType from .const import DOMAIN -from .renault_entities import RenaultDataEntity, RenaultDataEntityDescription +from .entity import RenaultDataEntity, RenaultDataEntityDescription from .renault_hub import RenaultHub diff --git a/homeassistant/components/renault/button.py b/homeassistant/components/renault/button.py index 01881d6947a..5f916a2d140 100644 --- a/homeassistant/components/renault/button.py +++ b/homeassistant/components/renault/button.py @@ -11,7 +11,7 @@ from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback from .const import DOMAIN -from .renault_entities import RenaultEntity +from .entity import RenaultEntity from .renault_hub import RenaultHub diff --git a/homeassistant/components/renault/renault_coordinator.py b/homeassistant/components/renault/coordinator.py similarity index 100% rename from homeassistant/components/renault/renault_coordinator.py rename to homeassistant/components/renault/coordinator.py diff --git a/homeassistant/components/renault/device_tracker.py b/homeassistant/components/renault/device_tracker.py index e646a9648e3..a27c59cecfb 100644 --- a/homeassistant/components/renault/device_tracker.py +++ b/homeassistant/components/renault/device_tracker.py @@ -9,7 +9,7 @@ from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback from .const import DOMAIN -from .renault_entities import RenaultDataEntity, RenaultDataEntityDescription +from .entity import RenaultDataEntity, RenaultDataEntityDescription from .renault_hub import RenaultHub diff --git a/homeassistant/components/renault/renault_entities.py b/homeassistant/components/renault/entity.py similarity index 96% rename from homeassistant/components/renault/renault_entities.py rename to homeassistant/components/renault/entity.py index 188d429016a..aa83c935957 100644 --- a/homeassistant/components/renault/renault_entities.py +++ b/homeassistant/components/renault/entity.py @@ -8,7 +8,7 @@ from homeassistant.helpers.entity import Entity, EntityDescription from homeassistant.helpers.typing import StateType from homeassistant.helpers.update_coordinator import CoordinatorEntity -from .renault_coordinator import RenaultDataUpdateCoordinator, T +from .coordinator import RenaultDataUpdateCoordinator, T from .renault_vehicle import RenaultVehicleProxy diff --git a/homeassistant/components/renault/renault_vehicle.py b/homeassistant/components/renault/renault_vehicle.py index 9580ea2b7d0..30e251dd30b 100644 --- a/homeassistant/components/renault/renault_vehicle.py +++ b/homeassistant/components/renault/renault_vehicle.py @@ -18,7 +18,7 @@ from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers.entity import DeviceInfo from .const import DOMAIN -from .renault_coordinator import RenaultDataUpdateCoordinator +from .coordinator import RenaultDataUpdateCoordinator LOGGER = logging.getLogger(__name__) _T = TypeVar("_T") diff --git a/homeassistant/components/renault/select.py b/homeassistant/components/renault/select.py index 02cf6d5c6b0..1ec891a51e4 100644 --- a/homeassistant/components/renault/select.py +++ b/homeassistant/components/renault/select.py @@ -14,7 +14,7 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.helpers.typing import StateType from .const import DOMAIN -from .renault_entities import RenaultDataEntity, RenaultDataEntityDescription +from .entity import RenaultDataEntity, RenaultDataEntityDescription from .renault_hub import RenaultHub diff --git a/homeassistant/components/renault/sensor.py b/homeassistant/components/renault/sensor.py index 1433d1e74f5..90ad70521df 100644 --- a/homeassistant/components/renault/sensor.py +++ b/homeassistant/components/renault/sensor.py @@ -37,8 +37,8 @@ from homeassistant.helpers.typing import StateType from homeassistant.util.dt import as_utc, parse_datetime from .const import DOMAIN -from .renault_coordinator import T -from .renault_entities import RenaultDataEntity, RenaultDataEntityDescription +from .coordinator import T +from .entity import RenaultDataEntity, RenaultDataEntityDescription from .renault_hub import RenaultHub from .renault_vehicle import RenaultVehicleProxy -- GitLab