Skip to content

Commit

Permalink
Fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mschlenstedt committed Sep 28, 2024
1 parent 48ab327 commit 27047b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mqtt_io/modules/sensor/as3935.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ def increase_threshold(self) -> None:

def get_value(self, value) -> float:
""" Return the value of 'type' """
value = float(self.data[value])
return value
ret = float(self.data[value])
return ret


class Sensor(GenericSensor):
Expand Down

0 comments on commit 27047b3

Please sign in to comment.