Print entity type in "too slow" warnings (#10641)

* Update entity.py

* Update entity.py
This commit is contained in:
Andrey authored and Daniel Høyer Iversen committed 2017-11-17 17:36:18 +01:00
1 parent 68d2076b56
commit f43092c563
1 file changed
+2 -2
+2 -2
View File
@@ -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: