From be74c3eea0be7f96758957a3af67935237775f01 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Sat, 22 Jun 2024 12:19:06 -0700 Subject: [PATCH] fix linter warnings --- meshtastic/observable.py | 2 +- meshtastic/powermon/__init__.py | 4 +++- meshtastic/powermon/riden.py | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/meshtastic/observable.py b/meshtastic/observable.py index 0d06a73..d57330c 100644 --- a/meshtastic/observable.py +++ b/meshtastic/observable.py @@ -10,7 +10,7 @@ class Event: def __getattr__(self, name: str) -> typing.Any: """We dynamically add attributes to this class, so stub out __getattr__ so that mypy doesn't complain.""" - pass + class Observable: """A class that represents an observable object. diff --git a/meshtastic/powermon/__init__.py b/meshtastic/powermon/__init__.py index d83d496..d8b4104 100644 --- a/meshtastic/powermon/__init__.py +++ b/meshtastic/powermon/__init__.py @@ -1 +1,3 @@ -from .riden import * \ No newline at end of file +"""Support for logging from power meters/supplies.""" + +from .riden import * diff --git a/meshtastic/powermon/riden.py b/meshtastic/powermon/riden.py index 41b82cd..8d7c131 100644 --- a/meshtastic/powermon/riden.py +++ b/meshtastic/powermon/riden.py @@ -55,4 +55,3 @@ class RidenPowerSupply(PowerSupply): """Get the current watt-hour reading.""" self.r.update() return self.r.wh -