mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Fix Tuya climate c_f DP not being a string (#63680)
This commit is contained in:
parent
689504af86
commit
d0ddf3ce8c
@ -148,8 +148,9 @@ class TuyaClimateEntity(TuyaEntity, ClimateEntity):
|
|||||||
):
|
):
|
||||||
self._attr_temperature_unit = TEMP_CELSIUS
|
self._attr_temperature_unit = TEMP_CELSIUS
|
||||||
if any(
|
if any(
|
||||||
"f" in device.status.get(dpcode, "").lower()
|
"f" in device.status[dpcode].lower()
|
||||||
for dpcode in (DPCode.C_F, DPCode.TEMP_UNIT_CONVERT)
|
for dpcode in (DPCode.C_F, DPCode.TEMP_UNIT_CONVERT)
|
||||||
|
if isinstance(device.status.get(dpcode), str)
|
||||||
):
|
):
|
||||||
self._attr_temperature_unit = TEMP_FAHRENHEIT
|
self._attr_temperature_unit = TEMP_FAHRENHEIT
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user