Use UnitOfTemperature in climate entities [m-s] (#83131)

This commit is contained in:
epenet 2022-12-02 19:56:18 +01:00 committed by GitHub
parent d3b35ca2a7
commit 8b867d612f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 82 additions and 74 deletions

View file

@ -23,7 +23,7 @@ from homeassistant.components.climate import (
HVACAction,
HVACMode,
)
from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS
from homeassistant.const import ATTR_TEMPERATURE, UnitOfTemperature
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
@ -79,7 +79,7 @@ class MaxCubeClimate(ClimateEntity):
self._device = device
self._attr_should_poll = True
self._attr_unique_id = self._device.serial
self._attr_temperature_unit = TEMP_CELSIUS
self._attr_temperature_unit = UnitOfTemperature.CELSIUS
self._attr_preset_modes = [
PRESET_NONE,
PRESET_BOOST,