Add attribution and onboarding commands to conversation and Almond (#28621)

* Add attribution and onboarding commands to conversation and Almond

* False -> None

* Comments

* Update __init__.py

* Comments + websocket for convert

* Lint
This commit is contained in:
Bram Kragten 2019-11-08 18:06:23 +01:00 committed by Paulus Schoutsen
parent 4435b3a5c9
commit 28c6837f00
3 changed files with 128 additions and 33 deletions

View file

@ -8,6 +8,19 @@ from homeassistant.helpers import intent
class AbstractConversationAgent(ABC):
"""Abstract conversation agent."""
@property
def attribution(self):
"""Return the attribution."""
return None
async def async_get_onboarding(self):
"""Get onboard data."""
return None
async def async_set_onboarding(self, shown):
"""Set onboard data."""
return True
@abstractmethod
async def async_process(
self, text: str, conversation_id: Optional[str] = None