From d5a8f1af1d2dc74a12fb6870a4f1cb5318f88bf9 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Fri, 10 Sep 2021 11:27:47 +0200 Subject: [PATCH] Revert "Suppress last_reset deprecation warning for energy cost sensor (#56037)" (#56042) This reverts commit e990ef249d781b4a201041ae72300ead8d23c44b. --- homeassistant/components/sensor/__init__.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/homeassistant/components/sensor/__init__.py b/homeassistant/components/sensor/__init__.py index 9c77c33a29c..91bff740ffd 100644 --- a/homeassistant/components/sensor/__init__.py +++ b/homeassistant/components/sensor/__init__.py @@ -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 "