Fixed native apparent temperature in WeatherEntity (#106645)
This commit is contained in:
parent
3cd5f0568a
commit
c1e37a4cc3
2 changed files with 1 additions and 2 deletions
|
@ -430,7 +430,7 @@ class WeatherEntity(Entity, PostInit, cached_properties=CACHED_PROPERTIES_WITH_A
|
||||||
@cached_property
|
@cached_property
|
||||||
def native_apparent_temperature(self) -> float | None:
|
def native_apparent_temperature(self) -> float | None:
|
||||||
"""Return the apparent temperature in native units."""
|
"""Return the apparent temperature in native units."""
|
||||||
return self._attr_native_temperature
|
return self._attr_native_apparent_temperature
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def native_temperature(self) -> float | None:
|
def native_temperature(self) -> float | None:
|
||||||
|
|
|
@ -669,7 +669,6 @@
|
||||||
# ---
|
# ---
|
||||||
# name: test_setup_hass
|
# name: test_setup_hass
|
||||||
ReadOnlyDict({
|
ReadOnlyDict({
|
||||||
'apparent_temperature': 18.0,
|
|
||||||
'attribution': 'Swedish weather institute (SMHI)',
|
'attribution': 'Swedish weather institute (SMHI)',
|
||||||
'cloud_coverage': 100,
|
'cloud_coverage': 100,
|
||||||
'forecast': list([
|
'forecast': list([
|
||||||
|
|
Loading…
Add table
Reference in a new issue