mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix grammar in async_get_platform comment (#113948)
https://github.com/home-assistant/core/pull/113917#pullrequestreview-1951203739
This commit is contained in:
parent
63275d61a5
commit
d0708b5b32
@ -1065,8 +1065,8 @@ class Integration:
|
|||||||
|
|
||||||
async def async_get_platform(self, platform_name: str) -> ModuleType:
|
async def async_get_platform(self, platform_name: str) -> ModuleType:
|
||||||
"""Return a platform for an integration."""
|
"""Return a platform for an integration."""
|
||||||
# Fast path for a single platform when its already
|
# Fast path for a single platform when it is already cached.
|
||||||
# cached. This is the common case.
|
# This is the common case.
|
||||||
if platform := self._cache.get(f"{self.domain}.{platform_name}"):
|
if platform := self._cache.get(f"{self.domain}.{platform_name}"):
|
||||||
return platform # type: ignore[return-value]
|
return platform # type: ignore[return-value]
|
||||||
platforms = await self.async_get_platforms((platform_name,))
|
platforms = await self.async_get_platforms((platform_name,))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user