Skip to content

Commit 645996c

Browse files
committed
Fix relative imports
1 parent 7b69f3c commit 645996c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

plugwise/legacy/data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
# Dict as class
88
# Version detection
9-
from ..constants import NONE, SWITCH_GROUP_TYPES, ZONE_THERMOSTATS, DeviceData
10-
from .helper import SmileLegacyHelper
9+
from .constants import NONE, SWITCH_GROUP_TYPES, ZONE_THERMOSTATS, DeviceData
10+
from .legacy.helper import SmileLegacyHelper
1111

1212

1313
def remove_empty_platform_dicts(data: DeviceData) -> None:

plugwise/legacy/helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from munch import Munch
1313
import semver
1414

15-
from ..constants import (
15+
from .constants import (
1616
ACTIVE_ACTUATORS,
1717
ACTUATOR_CLASSES,
1818
ANNA,
@@ -53,7 +53,7 @@
5353
SwitchType,
5454
ThermoLoc,
5555
)
56-
from ..util import format_measure, version_to_model
56+
from .util import format_measure, version_to_model
5757

5858

5959
def etree_to_dict(element: etree) -> dict[str, str]:

plugwise/legacy/smile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from munch import Munch
1313

1414
# Version detection
15-
from ..constants import (
15+
from .constants import (
1616
APPLIANCES,
1717
DEFAULT_PORT,
1818
DEFAULT_TIMEOUT,
@@ -27,9 +27,9 @@
2727
GatewayData,
2828
PlugwiseData,
2929
)
30-
from ..exceptions import PlugwiseError
31-
from ..helper import SmileComm
32-
from .data import SmileLegacyData
30+
from .exceptions import PlugwiseError
31+
from .helper import SmileComm
32+
from .legacy.data import SmileLegacyData
3333

3434

3535
class SmileLegacyAPI(SmileComm, SmileLegacyData):

0 commit comments

Comments
 (0)