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 GitHub
parent eb9ba527d0
commit b69b55987d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -819,7 +819,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: