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 GitHub
parent 2add7707b4
commit e83aa86426
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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([