mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
This reverts commit e990ef249d781b4a201041ae72300ead8d23c44b.
This commit is contained in:
parent
ff1b39cda6
commit
d5a8f1af1d
@ -216,9 +216,6 @@ class SensorEntity(Entity):
|
||||
and not self._last_reset_reported
|
||||
):
|
||||
self._last_reset_reported = True
|
||||
if self.platform and self.platform.platform_name == "energy":
|
||||
return {ATTR_LAST_RESET: last_reset.isoformat()}
|
||||
|
||||
report_issue = self._suggest_report_issue()
|
||||
_LOGGER.warning(
|
||||
"Entity %s (%s) with state_class %s has set last_reset. Setting "
|
||||
|
Loading…
x
Reference in New Issue
Block a user