File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class Sensor(GenericSensor):
36
36
def setup_module (self ) -> None :
37
37
# pylint: disable=import-outside-toplevel,attribute-defined-outside-init
38
38
# pylint: disable=import-error,no-member
39
- from Adafruit_BMP .BMP085 import BMP085
39
+ from Adafruit_BMP .BMP085 import BMP085 # type: ignore
40
40
41
41
self .address : int = self .config ["chip_addr" ]
42
42
self .bmp = BMP085 (address = self .address )
@@ -46,6 +46,6 @@ def get_value(self, sens_conf: ConfigType) -> SensorValueType:
46
46
Get the temperature, humidity or pressure value from the sensor
47
47
"""
48
48
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
50
51
return cast (float , data )
51
-
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class Sensor(GenericSensor):
37
37
def setup_module (self ) -> None :
38
38
# pylint: disable=import-outside-toplevel,import-error
39
39
import adafruit_dht # type: ignore
40
- from microcontroller import Pin
40
+ from microcontroller import Pin # type: ignore
41
41
42
42
sensor_type : str = self .config ["type" ].lower ()
43
43
You can’t perform that action at this time.
0 commit comments