Skip to content

Commit 08f0758

Browse files
committed
pylint
1 parent 0879a57 commit 08f0758

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

fake_bme280/basic.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,10 @@
2626
https://circuitpython.org/downloads
2727
"""
2828
import math
29-
import os
30-
import toml
3129
import socket as pool
3230
import ssl
3331
import typing # pylint: disable=unused-import
32+
import toml
3433
from micropython import const
3534
import adafruit_requests
3635
from fake_bme280.protocol import I2C_Impl, SPI_Impl
@@ -77,18 +76,18 @@
7776
_BME280_REGISTER_HUMIDDATA = const(0xFD)
7877

7978
# Load the settings.toml file
80-
config = toml.load("settings.toml")
79+
toml_config = toml.load("settings.toml")
8180

8281
# OpenWeatherMap API
8382
# GET weather data for a specific location
8483
DATA_SOURCE = (
8584
"http://api.openweathermap.org/data/2.5/weather?q="
86-
+ config["openweather_location"]
85+
+ toml_config["openweather_location"]
8786
+ "&units="
88-
+ config["openweather_units"]
87+
+ toml_config["openweather_units"]
8988
+ "&mode=json"
9089
+ "&appid="
91-
+ config["openweather_token"]
90+
+ toml_config["openweather_token"]
9291
)
9392

9493

fake_bme280/protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class I2C_Impl:
1111
"Protocol implementation for the I2C bus."
1212

13-
# pylint: disable=too-few-public-methods
13+
# pylint: disable=too-few-public-methods, unused-argument, unused-import
1414
def __init__(self, i2c: I2C, address: int) -> None:
1515
from adafruit_bus_device import ( # pylint: disable=import-outside-toplevel
1616
i2c_device,

0 commit comments

Comments
 (0)