Fixed native apparent temperature in WeatherEntity (#106645)

This commit is contained in:
Jaroslav Hanslík
2023-12-31 18:56:11 +01:00
committed by Franck Nijhof
parent 3cd5f0568a
commit c1e37a4cc3
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -430,7 +430,7 @@ class WeatherEntity(Entity, PostInit, cached_properties=CACHED_PROPERTIES_WITH_A
@cached_property
def native_apparent_temperature(self) -> float | None:
"""Return the apparent temperature in native units."""
return self._attr_native_temperature
return self._attr_native_apparent_temperature
@cached_property
def native_temperature(self) -> float | None:
@@ -669,7 +669,6 @@
# ---
# name: test_setup_hass
ReadOnlyDict({
'apparent_temperature': 18.0,
'attribution': 'Swedish weather institute (SMHI)',
'cloud_coverage': 100,
'forecast': list([