Default tuya climate temperature unit to system unit (#108050)

This commit is contained in:
DellanX 2024-01-16 06:40:11 -06:00 committed by GitHub
parent 523352c97e
commit 04bc8e09a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(