From 6e88428f958f4e8a93e90cdf20f4b57ccecc0aff Mon Sep 17 00:00:00 2001 From: Raman Gupta <7243222+raman325@users.noreply.github.com> Date: Tue, 20 Jul 2021 13:31:55 -0400 Subject: [PATCH] Fix typing for climacell dataclass (#53240) --- homeassistant/components/climacell/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/climacell/const.py b/homeassistant/components/climacell/const.py index f19724b002e..c11c0b1774b 100644 --- a/homeassistant/components/climacell/const.py +++ b/homeassistant/components/climacell/const.py @@ -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