Skip to content

Commit d24397a

Browse files
Merge pull request #75 from AnotherDaniel/fix_disable_debug
Make debug switch actually work
2 parents d0d3da0 + 2a47802 commit d24397a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
44

55
[project]
66
name = "smahub"
7-
version = "1.7.6"
7+
version = "1.7.7"
88
authors = [{ name = "Daniel Krippner", email = "dk.mailbox@gmx.net" }]
99
description = "Little daemon that runs plugins for collecting data from SMA PV products, and publishes to eg MQTT via other plugins."
1010
readme = "README.md"

src/smahub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ async def main(args):
215215
logging.getLogger().setLevel(logging.DEBUG)
216216
logging.debug('Verbose output enabled')
217217

218-
if args.debug:
218+
if args.debug == 'true':
219219
# Allow other computers to attach to debugpy at this IP address and port.
220220
debugpy.listen(('0.0.0.0', args.debug_port))
221221
logging.info(f"Listening on debug port: {args.debug_port}")

0 commit comments

Comments
 (0)