Fixed native apparent temperature in WeatherEntity (#106645)

This commit is contained in:
Jaroslav Hanslík 2023-12-29 18:37:46 +01:00 committed by Franck Nijhof
parent 3cd5f0568a
commit c1e37a4cc3
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3
2 changed files with 1 additions and 2 deletions

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:

View file

@ -669,7 +669,6 @@
# ---
# name: test_setup_hass
ReadOnlyDict({
'apparent_temperature': 18.0,
'attribution': 'Swedish weather institute (SMHI)',
'cloud_coverage': 100,
'forecast': list([