Skip to content

Commit 650cf03

Browse files
authored
Remove lint warnings from bmp085.py (#375)
* suppress lint warnings
1 parent 3eee9a1 commit 650cf03

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mqtt_io/modules/sensor/bmp085.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Sensor(GenericSensor):
3636
def setup_module(self) -> None:
3737
# pylint: disable=import-outside-toplevel,attribute-defined-outside-init
3838
# pylint: disable=import-error,no-member
39-
from Adafruit_BMP.BMP085 import BMP085
39+
from Adafruit_BMP.BMP085 import BMP085 # type: ignore
4040

4141
self.address: int = self.config["chip_addr"]
4242
self.bmp = BMP085(address=self.address)
@@ -46,6 +46,6 @@ def get_value(self, sens_conf: ConfigType) -> SensorValueType:
4646
Get the temperature, humidity or pressure value from the sensor
4747
"""
4848
sens_type = sens_conf["type"]
49-
data = DATA_READER[sens_type](self.bmp)
49+
#error: Call to untyped function (unknown) in typed context
50+
data = DATA_READER[sens_type](self.bmp) # type: ignore
5051
return cast(float, data)
51-

mqtt_io/modules/sensor/dht22.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Sensor(GenericSensor):
3737
def setup_module(self) -> None:
3838
# pylint: disable=import-outside-toplevel,import-error
3939
import adafruit_dht # type: ignore
40-
from microcontroller import Pin
40+
from microcontroller import Pin # type: ignore
4141

4242
sensor_type: str = self.config["type"].lower()
4343

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy