mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 10:59:40 +00:00
Fix mixed case service schema registration (#96448)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user