Skip to content

Commit 6f589f3

Browse files
committed
Replace all relative imports
1 parent 59a83a6 commit 6f589f3

File tree

8 files changed

+23
-23
lines changed

8 files changed

+23
-23
lines changed

plugwise/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# Version detection
1212
import semver
1313

14-
from .constants import (
14+
from plugwise.constants import (
1515
DEFAULT_PORT,
1616
DEFAULT_TIMEOUT,
1717
DEFAULT_USERNAME,
@@ -23,15 +23,15 @@
2323
SYSTEM,
2424
PlugwiseData,
2525
)
26-
from .exceptions import (
26+
from plugwise.exceptions import (
2727
InvalidSetupError,
2828
PlugwiseError,
2929
ResponseError,
3030
UnsupportedDeviceError,
3131
)
32-
from .helper import SmileComm
33-
from .legacy.smile import SmileLegacyAPI
34-
from .smile import SmileAPI
32+
from plugwise.helper import SmileComm
33+
from plugwise.legacy.smile import SmileLegacyAPI
34+
from plugwise.smile import SmileAPI
3535

3636

3737
class Smile(SmileComm):

plugwise/data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55
from __future__ import annotations
66

7-
from .constants import (
7+
from plugwise.constants import (
88
ADAM,
99
ANNA,
1010
MAX_SETPOINT,
@@ -16,7 +16,7 @@
1616
ActuatorData,
1717
DeviceData,
1818
)
19-
from .helper import SmileHelper
19+
from plugwise.helper import SmileHelper
2020

2121

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

plugwise/helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from defusedxml import ElementTree as etree
1818
from munch import Munch
1919

20-
from .constants import (
20+
from plugwise.constants import (
2121
ACTIVE_ACTUATORS,
2222
ACTUATOR_CLASSES,
2323
ADAM,
@@ -63,13 +63,13 @@
6363
ThermoLoc,
6464
ToggleNameType,
6565
)
66-
from .exceptions import (
66+
from plugwise.exceptions import (
6767
ConnectionFailedError,
6868
InvalidAuthentication,
6969
InvalidXMLError,
7070
ResponseError,
7171
)
72-
from .util import escape_illegal_xml_characters, format_measure, version_to_model
72+
from plugwise.util import escape_illegal_xml_characters, format_measure, version_to_model
7373

7474

7575
def check_model(name: str | None, vendor_name: str | None) -> str | None:

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 .legacy.helper import SmileLegacyHelper
9+
from plugwise.constants import NONE, SWITCH_GROUP_TYPES, ZONE_THERMOSTATS, DeviceData
10+
from plugwise.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 plugwise.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 plugwise.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 plugwise.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 .legacy.data import SmileLegacyData
30+
from plugwise.exceptions import PlugwiseError
31+
from plugwise.helper import SmileComm
32+
from plugwise.legacy.data import SmileLegacyData
3333

3434

3535
class SmileLegacyAPI(SmileComm, SmileLegacyData):

plugwise/smile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# Version detection
1616
import semver
1717

18-
from .constants import (
18+
from plugwise.constants import (
1919
ADAM,
2020
ANNA,
2121
APPLIANCES,
@@ -33,9 +33,9 @@
3333
GatewayData,
3434
PlugwiseData,
3535
)
36-
from .data import SmileData
37-
from .exceptions import PlugwiseError
38-
from .helper import SmileComm
36+
from plugwise.data import SmileData
37+
from plugwise.exceptions import PlugwiseError
38+
from plugwise.helper import SmileComm
3939

4040

4141
class SmileAPI(SmileComm, SmileData):

plugwise/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import re
55

6-
from .constants import (
6+
from plugwise.constants import (
77
ELECTRIC_POTENTIAL_VOLT,
88
ENERGY_KILO_WATT_HOUR,
99
HW_MODELS,

0 commit comments

Comments
 (0)