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

* Update entity.py

* Update entity.py
This commit is contained in:
Andrey 2017-11-17 18:36:18 +02:00 committed by Daniel Høyer Iversen
parent 68d2076b56
commit f43092c563

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: