File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 77import datetime as dt
88from 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-
1510from plugwise .constants import (
1611 ACTIVE_ACTUATORS ,
1712 ACTUATOR_CLASSES ,
5550)
5651from 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
5959def etree_to_dict (element : etree ) -> dict [str , str ]:
6060 """Helper-function translating xml Element to dict."""
Original file line number Diff line number Diff line change 66
77import datetime as dt
88
9- import aiohttp
10-
11- from munch import Munch
12- import semver
13-
149# Version detection
1510from plugwise .constants import (
1611 APPLIANCES ,
3126from plugwise .helper import SmileComm
3227from plugwise .legacy .data import SmileLegacyData
3328
29+ import aiohttp
30+ from munch import Munch
31+ import semver
32+
3433
3534class SmileLegacyAPI (SmileComm , SmileLegacyData ):
3635 """The Plugwise SmileLegacyAPI class."""
You can’t perform that action at this time.
0 commit comments