From 6f7ddd76dc262b914c3b4347f6b83f2654388cb7 Mon Sep 17 00:00:00 2001 From: elden1337 Date: Sat, 24 Aug 2024 18:43:07 +0000 Subject: [PATCH] Auto Format --- custom_components/peaqev/__init__.py | 1 + custom_components/peaqev/config_flow.py | 3 ++- custom_components/peaqev/configflow/config_flow_schemas.py | 3 ++- custom_components/peaqev/peaqservice/hub/models/hub_options.py | 3 ++- custom_components/peaqev/peaqservice/util/constants.py | 1 - 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/custom_components/peaqev/__init__.py b/custom_components/peaqev/__init__.py index f3911f84..61d68dd9 100644 --- a/custom_components/peaqev/__init__.py +++ b/custom_components/peaqev/__init__.py @@ -12,6 +12,7 @@ HubOptions from custom_components.peaqev.peaqservice.util.constants import TYPELITE from custom_components.peaqev.services import async_prepare_register_services + from .const import DOMAIN, PLATFORMS from .peaqservice.chargertypes.models.chargertypes_enum import ChargerType from .peaqservice.hub.hub_factory import HubFactory diff --git a/custom_components/peaqev/config_flow.py b/custom_components/peaqev/config_flow.py index 13430c00..f29f7a77 100644 --- a/custom_components/peaqev/config_flow.py +++ b/custom_components/peaqev/config_flow.py @@ -20,7 +20,8 @@ from custom_components.peaqev.peaqservice.powertools.power_canary.const import \ FUSES_LIST from custom_components.peaqev.peaqservice.util.constants import ( - CAUTIONHOURTYPE_NAMES, TYPELITE, CautionHourType, SPOTPRICE_VALUETYPES) + CAUTIONHOURTYPE_NAMES, SPOTPRICE_VALUETYPES, TYPELITE, CautionHourType) + from .const import DOMAIN # pylint:disable=unused-import from .peaqservice.chargertypes.models.chargertypes_enum import ChargerType diff --git a/custom_components/peaqev/configflow/config_flow_schemas.py b/custom_components/peaqev/configflow/config_flow_schemas.py index d66631a9..a0be10de 100644 --- a/custom_components/peaqev/configflow/config_flow_schemas.py +++ b/custom_components/peaqev/configflow/config_flow_schemas.py @@ -7,7 +7,8 @@ from custom_components.peaqev.peaqservice.chargertypes.models.chargertypes_enum import \ CHARGERTYPES from custom_components.peaqev.peaqservice.util.constants import ( - CAUTIONHOURTYPE_NAMES, INSTALLATIONTYPES, CautionHourType, SPOTPRICE_VALUETYPES) + CAUTIONHOURTYPE_NAMES, INSTALLATIONTYPES, SPOTPRICE_VALUETYPES, + CautionHourType) TYPE_SCHEMA = vol.Schema( { diff --git a/custom_components/peaqev/peaqservice/hub/models/hub_options.py b/custom_components/peaqev/peaqservice/hub/models/hub_options.py index 2fc088d5..bb0a2a1e 100644 --- a/custom_components/peaqev/peaqservice/hub/models/hub_options.py +++ b/custom_components/peaqev/peaqservice/hub/models/hub_options.py @@ -3,7 +3,8 @@ from peaqevcore.common.spotprice.models.spotprice_type import SpotPriceType -from custom_components.peaqev.peaqservice.util.options_comparer import OptionsComparer +from custom_components.peaqev.peaqservice.util.options_comparer import \ + OptionsComparer @dataclass diff --git a/custom_components/peaqev/peaqservice/util/constants.py b/custom_components/peaqev/peaqservice/util/constants.py index d7e6c730..0e2e8a38 100644 --- a/custom_components/peaqev/peaqservice/util/constants.py +++ b/custom_components/peaqev/peaqservice/util/constants.py @@ -1,7 +1,6 @@ from peaqevcore.common.enums.cautionhourtype import CautionHourType from peaqevcore.common.spotprice.models.spotprice_type import SpotPriceType - """NAMING CONSTANTS""" CHARGERCONTROLLER = 'Charger controller' HOURCONTROLLER = 'Hour controller'