Cleanup sensor private attributes (#80463)

This commit is contained in:
epenet
2022-10-17 13:17:51 +02:00
committed by GitHub
parent 627bd82766
commit 9680cd267f

View File

@@ -418,12 +418,8 @@ class SensorEntity(Entity):
None # Subclasses of SensorEntity should not set this
)
_last_reset_reported = False
_temperature_conversion_reported = False
_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:
"""Call when the sensor entity is added to hass."""
await super().async_internal_added_to_hass()