mirror of
https://github.com/home-assistant/core.git
synced 2025-08-08 07:05:07 +02:00
Update homeassistant/components/ccm15/coordinator.py
Co-authored-by: Robert Resch <robert@resch.dev>
This commit is contained in:
@@ -145,13 +145,12 @@ class CCM15Climate(CoordinatorEntity[CCM15Coordinator], ClimateEntity):
|
||||
@property
|
||||
def current_temperature(self) -> Optional[int]:
|
||||
"""Return current temperature."""
|
||||
data: Optional[CCM15SlaveDevice] = self.coordinator.get_ac_data(self._ac_index)
|
||||
if data is None:
|
||||
return None
|
||||
|
||||
if data := self.coordinator.get_ac_data(self._ac_index):
|
||||
_LOGGER.debug("temp[%s]=%s", self._ac_index, data.temperature)
|
||||
return data.temperature
|
||||
|
||||
return None
|
||||
|
||||
@property
|
||||
def target_temperature(self) -> Optional[int]:
|
||||
"""Return target temperature."""
|
||||
|
Reference in New Issue
Block a user