Skip to content

Commit

Permalink
fix: changed to entity component (#884)
Browse files Browse the repository at this point in the history
Co-authored-by: Franck Nijhof <[email protected]>
  • Loading branch information
bendikrb and frenck authored Feb 20, 2025
1 parent c9219f2 commit 1227e1b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,16 @@
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers import config_validation as cv

from ....services import AbstractSpookEntityService
from ....services import AbstractSpookEntityComponentService

if TYPE_CHECKING:
from homeassistant.core import ServiceCall


class SpookService(AbstractSpookEntityService[Timer]):
class SpookService(AbstractSpookEntityComponentService[Timer]):
"""Home Assistant service to set duration for a timer."""

domain = DOMAIN
platform = "timer"
service = "set_duration"
schema = {
vol.Required(CONF_DURATION): cv.time_period,
Expand Down

0 comments on commit 1227e1b

Please sign in to comment.