Google report state: thermostatMode should be a string, not null (#49342)

This commit is contained in:
Bram Kragten 2021-04-19 17:20:00 +02:00 committed by Franck Nijhof
parent a5a62154d4
commit d61281b6fb
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -791,7 +791,7 @@ class TemperatureSettingTrait(_Trait):
if preset in self.preset_to_google:
response["thermostatMode"] = self.preset_to_google[preset]
else:
response["thermostatMode"] = self.hvac_to_google.get(operation)
response["thermostatMode"] = self.hvac_to_google.get(operation, "none")
current_temp = attrs.get(climate.ATTR_CURRENT_TEMPERATURE)
if current_temp is not None: