mirror of
https://github.com/home-assistant/core.git
synced 2025-08-08 07:05:07 +02:00
Apply PR Feedback
This commit is contained in:
@@ -122,6 +122,8 @@ class CCM15Climate(CoordinatorEntity[CCM15Coordinator], ClimateEntity):
|
|||||||
super().__init__(coordinator)
|
super().__init__(coordinator)
|
||||||
self._ac_host: str = ac_host
|
self._ac_host: str = ac_host
|
||||||
self._ac_index: int = ac_index
|
self._ac_index: int = ac_index
|
||||||
|
self._attr_should_poll = True
|
||||||
|
self._attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self) -> str:
|
def unique_id(self) -> str:
|
||||||
@@ -133,16 +135,6 @@ class CCM15Climate(CoordinatorEntity[CCM15Coordinator], ClimateEntity):
|
|||||||
"""Return name."""
|
"""Return name."""
|
||||||
return f"Climate{self._ac_index}"
|
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
|
@property
|
||||||
def current_temperature(self) -> int | None:
|
def current_temperature(self) -> int | None:
|
||||||
"""Return current temperature."""
|
"""Return current temperature."""
|
||||||
|
Reference in New Issue
Block a user