1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Refactor service enumeration methods to better match existing use cases (#108671)

This commit is contained in:
J. Nick Koston
2024-01-22 14:21:17 -10:00
committed by GitHub
parent f6bc5c98b3
commit 7c86ab14c3
12 changed files with 62 additions and 12 deletions

View File

@@ -585,7 +585,7 @@ async def async_get_all_descriptions(
# We don't mutate services here so we avoid calling
# async_services which makes a copy of every services
# dict.
services = hass.services._services # pylint: disable=protected-access
services = hass.services.async_services_internal()
# See if there are new services not seen before.
# Any service that we saw before already has an entry in description_cache.