From 97dd7fcfd752dfe2f3d77db49314fd7d1786c2b2 Mon Sep 17 00:00:00 2001 From: Mictronics Date: Thu, 31 Oct 2024 20:27:53 +0100 Subject: [PATCH] Fix attribute error for Globals. --- src/meshtastic2hass/meshtastic2hass.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meshtastic2hass/meshtastic2hass.py b/src/meshtastic2hass/meshtastic2hass.py index 58d698c..ee18546 100644 --- a/src/meshtastic2hass/meshtastic2hass.py +++ b/src/meshtastic2hass/meshtastic2hass.py @@ -38,7 +38,7 @@ __author__ = "Michael Wolf aka Mictronics" __copyright__ = "2024, (C) Michael Wolf" __license__ = "GPL v3+" -__version__ = "1.0.18" +__version__ = "1.0.19" def onReceiveTelemetry(packet, interface, topic=pub.AUTO_TOPIC): @@ -495,7 +495,7 @@ def signal_handler(signal, frame): signal.signal(signal.SIGABRT, signal_handler) signal.signal(signal.SIGTERM, signal_handler) - _globals = Globals.getInstance() + _globals = Globals().getInstance() parser = argparse.ArgumentParser( prog="meshtastic2hass", description="Connects Meshtastic radios via MQTT to Home Assistant (Hass).",