mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-23 17:16:33 +00:00
Fix lint
This commit is contained in:
parent
7211e6c562
commit
82254def09
@ -1,5 +1,4 @@
|
|||||||
"""Schedule for HassIO."""
|
"""Schedule for HassIO."""
|
||||||
import asyncio
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
@ -9,6 +8,7 @@ REPEAT = 'repeat'
|
|||||||
CALL = 'callback'
|
CALL = 'callback'
|
||||||
TASK = 'task'
|
TASK = 'task'
|
||||||
|
|
||||||
|
|
||||||
class Scheduler(object):
|
class Scheduler(object):
|
||||||
"""Schedule task inside HassIO."""
|
"""Schedule task inside HassIO."""
|
||||||
|
|
||||||
@ -17,7 +17,8 @@ class Scheduler(object):
|
|||||||
self.loop = loop
|
self.loop = loop
|
||||||
self._data = {}
|
self._data = {}
|
||||||
|
|
||||||
def register_task(coro_callback, seconds, repeat=True, first_run=False):
|
def register_task(self, coro_callback, seconds, repeat=True,
|
||||||
|
first_run=False):
|
||||||
"""Schedule a coroutine.
|
"""Schedule a coroutine.
|
||||||
|
|
||||||
The coroutien need to be a callback without arguments.
|
The coroutien need to be a callback without arguments.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user