1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Ensure config entry platforms are excluded from reload (#42367)

This commit is contained in:
J. Nick Koston
2020-10-25 17:53:31 -05:00
committed by GitHub
parent fe62543a25
commit ce2c388c09
3 changed files with 19 additions and 5 deletions

View File

@@ -79,6 +79,10 @@ class EntityPlatform:
self.platform_name, []
).append(self)
def __repr__(self):
"""Represent an EntityPlatform."""
return f"<EntityPlatform domain={self.domain} platform_name={self.platform_name} config_entry={self.config_entry}>"
@callback
def _get_parallel_updates_semaphore(
self, entity_has_async_update: bool