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:
@@ -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'>,
|
||||
|
||||
Reference in New Issue
Block a user