From 1bb135c0e68fa4a785fee2e1fabdfe19692599a6 Mon Sep 17 00:00:00 2001 From: Morg42 <43153739+Morg42@users.noreply.github.com> Date: Mon, 16 Dec 2024 15:16:54 +0100 Subject: [PATCH] smartmeter: fix standalone...again --- smartmeter/dlms.py | 6 +++++- smartmeter/sml.py | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/smartmeter/dlms.py b/smartmeter/dlms.py index 7a547a06a..f6f541889 100755 --- a/smartmeter/dlms.py +++ b/smartmeter/dlms.py @@ -53,7 +53,11 @@ try: from lib.model.smartplugin import SmartPlugin except ImportError: - pass + class SmartPlugin(): + pass + + class SmartPluginWebIf(): + pass """ diff --git a/smartmeter/sml.py b/smartmeter/sml.py index c2c35a143..7c9b58e77 100755 --- a/smartmeter/sml.py +++ b/smartmeter/sml.py @@ -55,7 +55,11 @@ try: from lib.model.smartplugin import SmartPlugin except ImportError: - pass + class SmartPlugin(): + pass + + class SmartPluginWebIf(): + pass """ This module implements the query of a smartmeter using the SML protocol.