import appdaemon.appapi outdated (#7329)

appdaemon.appapi as appapi changed to import appdaemon.plugins.hass.hassapi as hass
This commit is contained in:
CrazYoshi 2018-11-02 13:17:46 +01:00 committed by Fabian Affolter
parent f07b5f8628
commit 566fbc4e3f

View File

@ -392,9 +392,9 @@ For a more complex usage of the `telegram_bot` capabilities, using [AppDaemon](/
This is how the previous 4 automations would be through a simple AppDaemon app:
```python
import appdaemon.appapi as appapi
import appdaemon.plugins.hass.hassapi as hass
class TelegramBotEventListener(appapi.AppDaemon):
class TelegramBotEventListener(hass.Hass):
"""Event listener for Telegram bot events."""
def initialize(self):