mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
WS: Improve service calling errors (#23840)
* WS: Improve service calling errors * Docstyle * Types * Update text
This commit is contained in:
@@ -75,3 +75,7 @@ class ServiceNotFound(HomeAssistantError):
|
||||
self, "Service {}.{} not found".format(domain, service))
|
||||
self.domain = domain
|
||||
self.service = service
|
||||
|
||||
def __str__(self) -> str:
|
||||
"""Return string representation."""
|
||||
return "Unable to find service {}/{}".format(self.domain, self.service)
|
||||
|
||||
Reference in New Issue
Block a user