Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
isabellaalstrom committed Sep 8, 2020
1 parent e367616 commit 62cc034
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions custom_components/grocy/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
import asyncio
import voluptuous as vol
import iso8601
import logging

from homeassistant.helpers import config_validation as cv
from homeassistant.helpers import entity_component

from pygrocy import TransactionType
from datetime import datetime

# pylint: disable=relative-beyond-top-level
from .const import DOMAIN

GROCY_SERVICES = "grocy_services"
Expand Down Expand Up @@ -66,19 +65,13 @@

SERVICE_COMPLETE_TASK_SCHEMA = vol.All(
vol.Schema(
{
vol.Required(SERVICE_TASK_ID): int,
vol.Optional(SERVICE_DONE_TIME): str,
}
{vol.Required(SERVICE_TASK_ID): int, vol.Optional(SERVICE_DONE_TIME): str,}
)
)

SERVICE_ADD_GENERIC_SCHEMA = vol.All(
vol.Schema(
{
vol.Required(SERVICE_ENTITY_TYPE): str,
vol.Required(SERVICE_DATA): object,
}
{vol.Required(SERVICE_ENTITY_TYPE): str, vol.Required(SERVICE_DATA): object,}
)
)

Expand Down

0 comments on commit 62cc034

Please sign in to comment.