Print entity type in "too slow" warnings (#10641)
* Update entity.py * Update entity.py
This commit is contained in:
parent
68d2076b56
commit
f43092c563
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue