From f43092c563a4153b5e816aba3e0781f45b5e8cad Mon Sep 17 00:00:00 2001 From: Andrey Date: Fri, 17 Nov 2017 18:36:18 +0200 Subject: [PATCH] Print entity type in "too slow" warnings (#10641) * Update entity.py * Update entity.py --- homeassistant/helpers/entity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/helpers/entity.py b/homeassistant/helpers/entity.py index 4a967e50995..78db0890ab1 100644 --- a/homeassistant/helpers/entity.py +++ b/homeassistant/helpers/entity.py @@ -235,10 +235,10 @@ class Entity(object): if not self._slow_reported and end - start > 0.4: self._slow_reported = True - _LOGGER.warning("Updating state for %s took %.3f seconds. " + _LOGGER.warning("Updating state for %s (%s) took %.3f seconds. " "Please report platform to the developers at " "https://goo.gl/Nvioub", self.entity_id, - end - start) + type(self), end - start) # Overwrite properties that have been set in the config file. if DATA_CUSTOMIZE in self.hass.data: