diff --git a/broadlink_ac_mqtt/AcToMqtt.py b/broadlink_ac_mqtt/AcToMqtt.py index 5b36c57..f3de8dc 100644 --- a/broadlink_ac_mqtt/AcToMqtt.py +++ b/broadlink_ac_mqtt/AcToMqtt.py @@ -11,7 +11,7 @@ import traceback sys.path.insert(1, os.path.join(os.path.dirname(os.path.realpath(__file__)),'classes','broadlink')) -import ac_db as broadlink +import broadlink_ac_mqtt.classes.broadlink.ac_db as broadlink diff --git a/broadlink_ac_mqtt/classes/broadlink/ac_db.py b/broadlink_ac_mqtt/classes/broadlink/ac_db.py index 7746813..71509f6 100644 --- a/broadlink_ac_mqtt/classes/broadlink/ac_db.py +++ b/broadlink_ac_mqtt/classes/broadlink/ac_db.py @@ -309,7 +309,7 @@ def get_ac_status(self,force_update = False): ##Get AC info(also populates the current temp) self.logger.debug("Getting AC Info") - self.get_ac_info() + status = self.get_ac_info() self.logger.debug("AC Info Retrieved") return status