Skip to content

Commit 7331b42

Browse files
pre-commit-ci[bot]bouwew
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f193d29 commit 7331b42

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

plugwise/legacy/helper.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
import datetime as dt
88
from typing import cast
99

10-
# This way of importing aiohttp is because of patch/mocking in testing (aiohttp timeouts)
11-
from defusedxml import ElementTree as etree
12-
from munch import Munch
13-
import semver
14-
1510
from plugwise.constants import (
1611
ACTIVE_ACTUATORS,
1712
ACTUATOR_CLASSES,
@@ -55,6 +50,11 @@
5550
)
5651
from plugwise.util import format_measure, version_to_model
5752

53+
# This way of importing aiohttp is because of patch/mocking in testing (aiohttp timeouts)
54+
from defusedxml import ElementTree as etree
55+
from munch import Munch
56+
import semver
57+
5858

5959
def etree_to_dict(element: etree) -> dict[str, str]:
6060
"""Helper-function translating xml Element to dict."""

plugwise/legacy/smile.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66

77
import datetime as dt
88

9-
import aiohttp
10-
11-
from munch import Munch
12-
import semver
13-
149
# Version detection
1510
from plugwise.constants import (
1611
APPLIANCES,
@@ -31,6 +26,10 @@
3126
from plugwise.helper import SmileComm
3227
from plugwise.legacy.data import SmileLegacyData
3328

29+
import aiohttp
30+
from munch import Munch
31+
import semver
32+
3433

3534
class SmileLegacyAPI(SmileComm, SmileLegacyData):
3635
"""The Plugwise SmileLegacyAPI class."""

0 commit comments

Comments
 (0)