mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 12:15:08 +02:00
Default tuya climate temperature unit to system unit (#108050)
This commit is contained in:
@@ -156,8 +156,8 @@ class TuyaClimateEntity(TuyaEntity, ClimateEntity):
|
||||
):
|
||||
prefered_temperature_unit = UnitOfTemperature.FAHRENHEIT
|
||||
|
||||
# Default to Celsius
|
||||
self._attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
# Default to System Temperature Unit
|
||||
self._attr_temperature_unit = self.hass.config.units.temperature_unit
|
||||
|
||||
# Figure out current temperature, use preferred unit or what is available
|
||||
celsius_type = self.find_dpcode(
|
||||
|
Reference in New Issue
Block a user