From 788e4ecdc1e23a84da183fa43d907624e0511bd1 Mon Sep 17 00:00:00 2001 From: Oscar Calvo Date: Sun, 20 Aug 2023 20:11:21 +0000 Subject: [PATCH] Apply PR Feedback --- homeassistant/components/ccm15/coordinator.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/ccm15/coordinator.py b/homeassistant/components/ccm15/coordinator.py index 4bf72531992..e4757735b6b 100644 --- a/homeassistant/components/ccm15/coordinator.py +++ b/homeassistant/components/ccm15/coordinator.py @@ -122,6 +122,8 @@ class CCM15Climate(CoordinatorEntity[CCM15Coordinator], ClimateEntity): super().__init__(coordinator) self._ac_host: str = ac_host self._ac_index: int = ac_index + self._attr_should_poll = True + self._attr_temperature_unit = UnitOfTemperature.CELSIUS @property def unique_id(self) -> str: @@ -133,16 +135,6 @@ class CCM15Climate(CoordinatorEntity[CCM15Coordinator], ClimateEntity): """Return name.""" return f"Climate{self._ac_index}" - @property - def should_poll(self) -> bool: - """Return if should poll.""" - return True - - @property - def temperature_unit(self) -> UnitOfTemperature: - """Return temperature unit.""" - return UnitOfTemperature.CELSIUS - @property def current_temperature(self) -> int | None: """Return current temperature."""