Skip to content

Commit 17d68df

Browse files
committed
I am a bad developer
1 parent 64f2784 commit 17d68df

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

custom_components/goecharger_api2/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
from datetime import timedelta
44
from typing import Any, Final
55

6+
from packaging.version import Version
7+
8+
from custom_components.goecharger_api2.pygoecharger_ha import GoeChargerApiV2Bridge, TRANSLATIONS, INTG_TYPE
9+
from custom_components.goecharger_api2.pygoecharger_ha.keys import Tag
610
from homeassistant.components.number import NumberDeviceClass
711
from homeassistant.config_entries import ConfigEntry
812
from homeassistant.const import CONF_HOST, CONF_TYPE, CONF_ID, CONF_SCAN_INTERVAL, CONF_MODE, CONF_TOKEN
@@ -19,10 +23,6 @@
1923
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
2024
from homeassistant.helpers.update_coordinator import UpdateFailed
2125
from homeassistant.loader import async_get_integration
22-
from packaging.version import Version
23-
24-
from custom_components.goecharger_api2.pygoecharger_ha import GoeChargerApiV2Bridge, TRANSLATIONS, INTG_TYPE
25-
from custom_components.goecharger_api2.pygoecharger_ha.keys import Tag
2626
from .const import (
2727
LAN,
2828
WAN,
@@ -253,7 +253,8 @@ def __init__(self, hass: HomeAssistant, config_entry):
253253
self.is_charger_fw_version_60_0_or_higher_and_no_cards_list_is_present = False
254254
super().__init__(hass, _LOGGER, name=DOMAIN, update_interval=SCAN_INTERVAL)
255255

256-
async def get_new_client_session(self):
256+
def get_new_client_session(self):
257+
_LOGGER.debug(f"get_new_client_session(): Create new aiohttp.ClientSession")
257258
return async_create_clientsession(self._hass)
258259

259260
# Callable[[Event], Any]

custom_components/goecharger_api2/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
"iot_class": "local_polling",
1212
"issue_tracker": "https://github.com/marq24/ha-goecharger-api2/issues",
1313
"requirements": ["packaging>=21.0"],
14-
"version": "2026.1.7"
14+
"version": "2026.1.8"
1515
}

0 commit comments

Comments
 (0)