mirror of https://github.com/home-assistant/core
Log exceptions in EntityPlatform.async_add_entities (#41730)
Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
33b548e247
commit
12a6d10168
|
@ -315,6 +315,13 @@ class EntityPlatform:
|
|||
self.platform_name,
|
||||
timeout,
|
||||
)
|
||||
except Exception:
|
||||
self.logger.exception(
|
||||
"Error adding entities for domain %s with platform %s",
|
||||
self.domain,
|
||||
self.platform_name,
|
||||
)
|
||||
raise
|
||||
|
||||
if self._async_unsub_polling is not None or not any(
|
||||
entity.should_poll for entity in self.entities.values()
|
||||
|
|
Loading…
Reference in New Issue