Skip to content

Commit

Permalink
Run formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 12, 2024
1 parent e62e3a7 commit 82617b0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion custom_components/energidataservice/connectors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from __future__ import annotations

from collections import namedtuple
import importlib
from collections import namedtuple
from logging import getLogger
from os import listdir
from posixpath import dirname
Expand Down
4 changes: 2 additions & 2 deletions custom_components/energidataservice/forecasts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from __future__ import annotations

from collections import namedtuple
import importlib
from collections import namedtuple
from logging import getLogger
from os import listdir
from posixpath import dirname
Expand Down Expand Up @@ -60,7 +60,7 @@ async def get_endpoint(self, region: str) -> list:
endpoints = []

await self.load_modules()

for endpoint in self._forecasts:
if region in endpoint.regions:
ForecastEndpoint = namedtuple("Forecast", "module namespace")
Expand Down
5 changes: 2 additions & 3 deletions custom_components/energidataservice/tariffs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

from __future__ import annotations

from collections import namedtuple
import importlib
from collections import namedtuple
from logging import getLogger
from os import listdir
from posixpath import dirname

from genericpath import isdir


_LOGGER = getLogger(__name__)


Expand Down Expand Up @@ -56,7 +55,7 @@ async def get_endpoint(self, region: str) -> list:
endpoints = []

await self.load_modules()

_LOGGER.debug("Finding valid endpoints for region '%s'", region)
for endpoint in self._tariffs:
if region in endpoint.regions or region is None:
Expand Down

0 comments on commit 82617b0

Please sign in to comment.