Fix typing for climacell dataclass (#53240)

pull/53249/head
Raman Gupta 2021-07-20 13:31:55 -04:00 committed by GitHub
parent 165e1917ea
commit 6e88428f95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ class ClimaCellSensorMetadata:
name: str
unit_imperial: str | None = None
unit_metric: str | None = None
metric_conversion: Callable | float = 1.0
metric_conversion: Callable[[float], float] | float = 1.0
is_metric_check: bool | None = None
device_class: str | None = None
value_map: IntEnum | None = None