-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make config public in runner
- Loading branch information
Showing
5 changed files
with
49 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import abc | ||
import asyncio | ||
from typing import Any | ||
|
||
|
||
class AbstractRunner(abc.ABC): | ||
"""Abstract runner.""" | ||
|
||
@abc.abstractmethod | ||
async def async_initialize_runner(self): | ||
"""Initialize the runner with the model and the context.""" | ||
pass | ||
|
||
@abc.abstractmethod | ||
async def async_initialize_runner_without_init_model(self): | ||
"""Initialize just the context and connection. Use async_get_current_state to get the current state.""" | ||
pass | ||
|
||
@abc.abstractmethod | ||
async def async_listening_for_updates(self): | ||
"""Start listening for updates from the homematicip access point. This method will not return.""" | ||
pass | ||
|
||
@abc.abstractmethod | ||
async def async_get_current_state(self): | ||
"""Return the current state of the homematicip access point.""" | ||
pass | ||
|
||
@property | ||
@abc.abstractmethod | ||
def rest_connection(self): | ||
"""Return the rest connection.""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters