diff --git a/custom_components/ecovacs/mqtt_ecovacs.py b/custom_components/ecovacs/mqtt_ecovacs.py index 58ea7c3..4cac2fb 100644 --- a/custom_components/ecovacs/mqtt_ecovacs.py +++ b/custom_components/ecovacs/mqtt_ecovacs.py @@ -11,7 +11,7 @@ from paho.mqtt import publish as MQTTPublish from paho.mqtt import subscribe as MQTTSubscribe from sleekxmppfs.xmlstream import ET -from . import const +from .const import _LOGGER #This is used by EcoVacsIOTMQ and EcoVacsXMPP for _ctl_to_dict def RepresentsInt(stringvar): diff --git a/custom_components/ecovacs/sucksbumper.py b/custom_components/ecovacs/sucksbumper.py index c45b326..a1902b7 100644 --- a/custom_components/ecovacs/sucksbumper.py +++ b/custom_components/ecovacs/sucksbumper.py @@ -10,7 +10,7 @@ from sleekxmppfs.exceptions import XMPPError from .mqtt_ecovacs import EcoVacsIOTMQ from .xmpp_ecovacs import EcoVacsXMPP -from . import const +from .const import * def str_to_bool_or_cert(s): if s == 'True' or s == True: diff --git a/custom_components/ecovacs/xmpp_ecovacs.py b/custom_components/ecovacs/xmpp_ecovacs.py index a9be3bc..e2a0bdb 100644 --- a/custom_components/ecovacs/xmpp_ecovacs.py +++ b/custom_components/ecovacs/xmpp_ecovacs.py @@ -4,7 +4,7 @@ from threading import Event from sleekxmppfs import ClientXMPP, Callback, MatchXPath from sleekxmppfs.xmlstream import ET #from sleekxmppfs.exceptions import XMPPError -from . import const +from .const import _LOGGER #This is used by EcoVacsIOTMQ and EcoVacsXMPP for _ctl_to_dict def RepresentsInt(stringvar):