Fix grammar in async_get_platform comment (#113948)

https://github.com/home-assistant/core/pull/113917#pullrequestreview-1951203739
This commit is contained in:
J. Nick Koston 2024-03-21 09:10:47 -10:00 committed by GitHub
parent 63275d61a5
commit d0708b5b32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1065,8 +1065,8 @@ class Integration:
async def async_get_platform(self, platform_name: str) -> ModuleType:
"""Return a platform for an integration."""
# Fast path for a single platform when its already
# cached. This is the common case.
# Fast path for a single platform when it is already cached.
# This is the common case.
if platform := self._cache.get(f"{self.domain}.{platform_name}"):
return platform # type: ignore[return-value]
platforms = await self.async_get_platforms((platform_name,))