mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Cleanup sensor private attributes (#80463)
This commit is contained in:
parent
627bd82766
commit
9680cd267f
@ -418,12 +418,8 @@ class SensorEntity(Entity):
|
|||||||
None # Subclasses of SensorEntity should not set this
|
None # Subclasses of SensorEntity should not set this
|
||||||
)
|
)
|
||||||
_last_reset_reported = False
|
_last_reset_reported = False
|
||||||
_temperature_conversion_reported = False
|
|
||||||
_sensor_option_unit_of_measurement: str | None = None
|
_sensor_option_unit_of_measurement: str | None = None
|
||||||
|
|
||||||
# Temporary private attribute to track if deprecation has been logged.
|
|
||||||
__datetime_as_string_deprecation_logged = False
|
|
||||||
|
|
||||||
async def async_internal_added_to_hass(self) -> None:
|
async def async_internal_added_to_hass(self) -> None:
|
||||||
"""Call when the sensor entity is added to hass."""
|
"""Call when the sensor entity is added to hass."""
|
||||||
await super().async_internal_added_to_hass()
|
await super().async_internal_added_to_hass()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user