1
0
mirror of https://github.com/home-assistant/core.git synced 2026-07-12 00:57:36 +01:00

Fix Teslemetry cabin overheat protection restored temperatures (#175973)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
epenet
2026-07-10 17:20:46 +02:00
committed by Franck Nijhof
parent c2a1784340
commit 607224ae14
2 changed files with 3 additions and 3 deletions
@@ -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(
@@ -410,7 +410,7 @@
# name: test_select_streaming[climate.test_cabin_overheat_protection]
StateSnapshot({
'attributes': ReadOnlyDict({
<ClimateEntityStateAttribute.CURRENT_TEMPERATURE: 'current_temperature'>: None,
<ClimateEntityStateAttribute.CURRENT_TEMPERATURE: 'current_temperature'>: 26,
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Cabin overheat protection',
<ClimateEntityCapabilityAttribute.HVAC_MODES: 'hvac_modes'>: list([
<HVACMode.OFF: 'off'>,