Skip to content

Commit

Permalink
smartmeter: fix standalone operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Morg42 committed Dec 16, 2024
1 parent 5d18ad0 commit a619790
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion smartmeter/dlms.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@
from threading import Lock
from typing import (Union, Tuple, Any)

from lib.model.smartplugin import SmartPlugin
# only for syntax/type checking
try:
from lib.model.smartplugin import SmartPlugin
except ImportError:
pass


"""
This module implements the query of a smartmeter using the DLMS protocol.
Expand Down
6 changes: 5 additions & 1 deletion smartmeter/sml.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@
from threading import Lock
from typing import Union

from lib.model.smartplugin import SmartPlugin
# only for syntax/type checking
try:
from lib.model.smartplugin import SmartPlugin
except ImportError:
pass

"""
This module implements the query of a smartmeter using the SML protocol.
Expand Down

0 comments on commit a619790

Please sign in to comment.