Apply PR Feedback

This commit is contained in:
Oscar Calvo
2023-08-20 20:08:02 +00:00
parent c27673dcb1
commit b7ea266211

View File

@@ -19,6 +19,7 @@ from homeassistant.components.climate import (
) )
from homeassistant.const import ATTR_TEMPERATURE, UnitOfTemperature from homeassistant.const import ATTR_TEMPERATURE, UnitOfTemperature
from homeassistant.core import HomeAssistant from homeassistant.core import HomeAssistant
from homeassistant.helpers.device_registry import DeviceInfo
from homeassistant.helpers.update_coordinator import ( from homeassistant.helpers.update_coordinator import (
CoordinatorEntity, CoordinatorEntity,
DataUpdateCoordinator, DataUpdateCoordinator,
@@ -214,17 +215,17 @@ class CCM15Climate(CoordinatorEntity[CCM15Coordinator], ClimateEntity):
) )
@property @property
def device_info(self): def device_info(self) -> DeviceInfo:
"""Return the device info.""" """Return the device info."""
return { return DeviceInfo(
"identifiers": { identifiers={
# Serial numbers are unique identifiers within a specific domain # Serial numbers are unique identifiers within a specific domain
(DOMAIN, f"{self._ac_host}.{self._ac_index}"), (DOMAIN, f"{self._ac_host}.{self._ac_index}"),
}, },
"name": self.name, name=self.name,
"manufacturer": "Midea", manufacturer="Midea",
"model": "CCM15", model="CCM15",
} )
@property @property
def extra_state_attributes(self) -> dict[str, Any]: def extra_state_attributes(self) -> dict[str, Any]: