Apply late review comments for Comelit climate (#109114)
* Apply late review comments for Comelit climate * remove loggingpull/107460/head^2
parent
dcd677fea8
commit
18a6ae081a
|
@ -21,7 +21,7 @@ from homeassistant.core import HomeAssistant
|
|||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
||||
|
||||
from .const import _LOGGER, DOMAIN
|
||||
from .const import DOMAIN
|
||||
from .coordinator import ComelitSerialBridge
|
||||
|
||||
|
||||
|
@ -115,7 +115,7 @@ class ComelitClimateEntity(CoordinatorEntity[ComelitSerialBridge], ClimateEntity
|
|||
@property
|
||||
def _clima(self) -> list[Any]:
|
||||
"""Return clima device data."""
|
||||
# CLIMATE has 2 turple:
|
||||
# CLIMATE has a 2 item tuple:
|
||||
# - first for Clima
|
||||
# - second for Humidifier
|
||||
return self.coordinator.data[CLIMATE][self._device.index].val[0]
|
||||
|
@ -159,7 +159,6 @@ class ComelitClimateEntity(CoordinatorEntity[ComelitSerialBridge], ClimateEntity
|
|||
if self._api_mode in API_STATUS:
|
||||
return API_STATUS[self._api_mode]["hvac_mode"]
|
||||
|
||||
_LOGGER.warning("Unknown API mode '%s' in hvac_mode", self._api_mode)
|
||||
return None
|
||||
|
||||
@property
|
||||
|
@ -175,7 +174,6 @@ class ComelitClimateEntity(CoordinatorEntity[ComelitSerialBridge], ClimateEntity
|
|||
if self._api_mode in API_STATUS:
|
||||
return API_STATUS[self._api_mode]["hvac_action"]
|
||||
|
||||
_LOGGER.warning("Unknown API mode '%s' in hvac_action", self._api_mode)
|
||||
return None
|
||||
|
||||
async def async_set_temperature(self, **kwargs: Any) -> None:
|
||||
|
|
Loading…
Reference in New Issue