Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
benbancroft committed Sep 25, 2024
1 parent fe09784 commit ec3d7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zha/application/platforms/sensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ class Flow(Sensor):
_divisor = 10
_attr_native_unit_of_measurement = UnitOfVolumeFlowRate.CUBIC_METERS_PER_HOUR

def formatter(self, value: int) -> int | None:
def formatter(self, value: int) -> int | float | str | None:
"""Handle unknown value state."""
if value == 0xFFFF:
return None
Expand Down

0 comments on commit ec3d7bc

Please sign in to comment.