mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
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,
|
self.platform_name,
|
||||||
timeout,
|
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(
|
if self._async_unsub_polling is not None or not any(
|
||||||
entity.should_poll for entity in self.entities.values()
|
entity.should_poll for entity in self.entities.values()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user