Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
acockburn committed Mar 23, 2023
1 parent 8c131a7 commit db67ea9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions appdaemon/adapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from typing import Any, Optional, Callable, Union
from asyncio import Future

# needed for fake coro cb that looks like scheduler
import uuid


Expand Down Expand Up @@ -1579,7 +1578,7 @@ async def set_state(self, entity_id: str, **kwargs: Optional[Any]) -> dict:
@staticmethod
def _check_service(service: str) -> None:
if service.find("/") == -1:
raise ValueError("Invalid Service Name: %s", service)
raise ValueError(f"Invalid Service Name: {service}")

def register_service(self, service: str, cb: Callable, **kwargs: Optional[Any]) -> None:
"""Registers a service that can be called from other apps, the REST API and the Event Stream
Expand Down

0 comments on commit db67ea9

Please sign in to comment.