Fix mixed case service schema registration (#96448)

This commit is contained in:
J. Nick Koston 2023-07-12 14:39:51 -10:00 committed by GitHub
parent 7009683226
commit 08af42b00e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 1 deletions

View file

@ -1770,7 +1770,7 @@ class ServiceRegistry:
the context. Will return NONE if the service does not exist as there is
other error handling when calling the service if it does not exist.
"""
if not (handler := self._services[domain][service]):
if not (handler := self._services[domain.lower()][service.lower()]):
return SupportsResponse.NONE
return handler.supports_response