Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
flyte committed May 7, 2021
1 parent 7733ce7 commit 1562f91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mqtt_io/modules/sensor/hcsr04.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import time
from statistics import mean
from typing import Any, Dict, List, Optional, cast
from typing import Any, Dict, List, Optional

from ...types import CerberusSchemaType, ConfigType, SensorValueType
from . import GenericSensor
Expand Down Expand Up @@ -94,7 +94,7 @@ def measure_range(self) -> float:
break
time.sleep(0.04)
if self.distance is not None:
measurements.append(float, self.distance)
measurements.append(self.distance)
time.sleep(0.05)
if not measurements:
raise RuntimeError(
Expand Down
2 changes: 1 addition & 1 deletion mqtt_io/modules/sensor/ina219.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def setup_module(self) -> None:

def get_value(self, sens_conf: ConfigType) -> SensorValueType:
# pylint: disable=import-outside-toplevel,import-error
from ina219 import DeviceRangeError
from ina219 import DeviceRangeError # type: ignore

sens_type = sens_conf["type"]

Expand Down

0 comments on commit 1562f91

Please sign in to comment.