Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
austinmroczek committed Nov 23, 2023
1 parent 9c14d02 commit 0b4d955
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 2 additions & 3 deletions solarman/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
Validate the JSON schema and contents used for the config file.
"""

import hashlib
import sys

from jsonschema import validate
from jsonschema.exceptions import ValidationError
from jsonschema.exceptions import SchemaError
from jsonschema.exceptions import SchemaError, ValidationError

_SCHEMA = {
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand Down
3 changes: 2 additions & 1 deletion solarman/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import logging
import random

from paho.mqtt import client as mqtt_client

logging.basicConfig(level=logging.INFO)
Expand Down Expand Up @@ -57,4 +58,4 @@ def message(self, topic, msg):
"""
MQTT Send message to selected topic
"""
self.publish(self, topic, msg)
self.publish(topic, msg)
4 changes: 2 additions & 2 deletions solarman/solarmanpv.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import logging
import sys
import time
from hashlib import sha256

from .api import SolarmanApi, ConstructData
from .api import ConstructData, SolarmanApi
from .helpers import ConfigCheck
from .mqtt import Mqtt
from hashlib import sha256

logging.basicConfig(level=logging.INFO)

Expand Down

0 comments on commit 0b4d955

Please sign in to comment.