mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Default tuya climate temperature unit to system unit (#108050)
This commit is contained in:
parent
523352c97e
commit
04bc8e09a5
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user