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

pull/45434/head
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
1 changed files with 1 additions and 1 deletions
homeassistant/components/google_assistant

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: