From 52b4fa4ee07d805cb2923f5601fbc525281607c8 Mon Sep 17 00:00:00 2001 From: bittles Date: Tue, 3 Jan 2023 21:06:17 -0500 Subject: [PATCH] import fixes --- custom_components/ecovacs/mqtt_ecovacs.py | 2 +- custom_components/ecovacs/sucksbumper.py | 2 +- custom_components/ecovacs/xmpp_ecovacs.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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):