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