From 89aebba3ab4205f93174b04a72516b588b870d11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guardia?= <79667811+FredericGuardia@users.noreply.github.com> Date: Wed, 1 Mar 2023 12:54:07 +0100 Subject: [PATCH] Fix Google Assistant temperature attribute (#85921) --- homeassistant/components/google_assistant/trait.py | 2 +- tests/components/google_assistant/test_trait.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/google_assistant/trait.py b/homeassistant/components/google_assistant/trait.py index af203906b86..b248ffbac22 100644 --- a/homeassistant/components/google_assistant/trait.py +++ b/homeassistant/components/google_assistant/trait.py @@ -832,7 +832,7 @@ class TemperatureControlTrait(_Trait): "temperatureUnitForUX": _google_temp_unit( self.hass.config.units.temperature_unit ), - "queryOnlyTemperatureSetting": True, + "queryOnlyTemperatureControl": True, "temperatureRange": { "minThresholdCelsius": -100, "maxThresholdCelsius": 100, diff --git a/tests/components/google_assistant/test_trait.py b/tests/components/google_assistant/test_trait.py index a04c74259d4..33eac82a6ba 100644 --- a/tests/components/google_assistant/test_trait.py +++ b/tests/components/google_assistant/test_trait.py @@ -1101,7 +1101,7 @@ async def test_temperature_control(hass: HomeAssistant) -> None: BASIC_CONFIG, ) assert trt.sync_attributes() == { - "queryOnlyTemperatureSetting": True, + "queryOnlyTemperatureControl": True, "temperatureUnitForUX": "C", "temperatureRange": {"maxThresholdCelsius": 100, "minThresholdCelsius": -100}, } @@ -2941,7 +2941,7 @@ async def test_temperature_control_sensor_data( ) assert trt.sync_attributes() == { - "queryOnlyTemperatureSetting": True, + "queryOnlyTemperatureControl": True, "temperatureUnitForUX": unit_out, "temperatureRange": {"maxThresholdCelsius": 100, "minThresholdCelsius": -100}, }