1
0
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:
Paulus Schoutsen
2019-05-14 07:09:11 +02:00
committed by GitHub
parent 0d96095646
commit de1fd5a7fa
6 changed files with 68 additions and 8 deletions

View File

@@ -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)