Limit entity platform entity service to same integration (#37313)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-07-02 11:39:53 +02:00
1 parent a015e551eb
commit d08d00daa7
2 files changed
+14 -1

No files matched your search

+9
View File
@@ -882,6 +882,15 @@ async def test_platforms_sharing_services(hass):
entity2 = MockEntity(entity_id="mock_integration.entity_2")
await entity_platform2.async_add_entities([entity2])
entity_platform3 = MockEntityPlatform(
hass,
domain="different_integration",
platform_name="mock_platform",
platform=None,
)
entity3 = MockEntity(entity_id="different_integration.entity_3")
await entity_platform3.async_add_entities([entity3])
entities = []
@callback