mirror of
https://github.com/home-assistant/core
synced 2024-09-09 12:51:22 +02:00
Change to warning if attributes missing.
This commit is contained in:
parent
1a5d18fd66
commit
3aad223c95
@ -126,4 +126,9 @@ class SensorTemplate(Entity):
|
||||
self._state = template.render(self.hass, self._template)
|
||||
except TemplateError as ex:
|
||||
self._state = STATE_ERROR
|
||||
if ex.args and ex.args[0].startswith(
|
||||
"UndefinedError: 'None' has no attribute"):
|
||||
# Common during HA startup - so just a trace
|
||||
_LOGGER.info(ex)
|
||||
return
|
||||
_LOGGER.error(ex)
|
||||
|
Loading…
Reference in New Issue
Block a user