Skip to content

Commit 8897c0f

Browse files
authored
Fix CI: adjust type annotation for mypy (#282)
Adjust type annotation for mypy
1 parent a9c9f8b commit 8897c0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zha/application/platforms/sensor/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@ class Flow(Sensor):
11431143
_divisor = 10
11441144
_attr_native_unit_of_measurement = UnitOfVolumeFlowRate.CUBIC_METERS_PER_HOUR
11451145

1146-
def formatter(self, value: int) -> int | float | str | None:
1146+
def formatter(self, value: int) -> datetime | int | float | str | None:
11471147
"""Handle unknown value state."""
11481148
if value == 0xFFFF:
11491149
return None

0 commit comments

Comments
 (0)