From 607224ae144ef5176d8fcc6e4785ee2bc044f1aa Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 10 Jul 2026 17:20:46 +0200 Subject: [PATCH] Fix Teslemetry cabin overheat protection restored temperatures (#175973) Co-authored-by: Claude Opus 4.8 (1M context) --- homeassistant/components/teslemetry/climate.py | 4 ++-- tests/components/teslemetry/snapshots/test_climate.ambr | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/teslemetry/climate.py b/homeassistant/components/teslemetry/climate.py index 3890e029cd1d..fddc4098549c 100644 --- a/homeassistant/components/teslemetry/climate.py +++ b/homeassistant/components/teslemetry/climate.py @@ -530,8 +530,8 @@ class TeslemetryStreamingCabinOverheatProtectionEntity( self._attr_hvac_mode = ( HVACMode(state.state) if state.state in HVAC_MODES else None ) - self._attr_current_temperature = state.attributes.get("temperature") - self._attr_target_temperature = state.attributes.get("target_temperature") + self._attr_current_temperature = state.attributes.get("current_temperature") + self._attr_target_temperature = state.attributes.get("temperature") self.async_on_remove( self.vehicle.stream_vehicle.listen_InsideTemp( diff --git a/tests/components/teslemetry/snapshots/test_climate.ambr b/tests/components/teslemetry/snapshots/test_climate.ambr index e65442579b2f..bff34849d51c 100644 --- a/tests/components/teslemetry/snapshots/test_climate.ambr +++ b/tests/components/teslemetry/snapshots/test_climate.ambr @@ -410,7 +410,7 @@ # name: test_select_streaming[climate.test_cabin_overheat_protection] StateSnapshot({ 'attributes': ReadOnlyDict({ - : None, + : 26, : 'Test Cabin overheat protection', : list([ ,