mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +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
|
prefered_temperature_unit = UnitOfTemperature.FAHRENHEIT
|
||||||
|
|
||||||
# Default to Celsius
|
# Default to System Temperature Unit
|
||||||
self._attr_temperature_unit = UnitOfTemperature.CELSIUS
|
self._attr_temperature_unit = self.hass.config.units.temperature_unit
|
||||||
|
|
||||||
# Figure out current temperature, use preferred unit or what is available
|
# Figure out current temperature, use preferred unit or what is available
|
||||||
celsius_type = self.find_dpcode(
|
celsius_type = self.find_dpcode(
|
||||||
|
Reference in New Issue
Block a user