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

This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-10-25 23:53:31 +01:00
1 parent fe62543a25
commit ce2c388c09
3 files changed
+19 -5

No files matched your search

+4
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