From 566fbc4e3f8ed9cae533472be50b19b007929e38 Mon Sep 17 00:00:00 2001 From: CrazYoshi Date: Fri, 2 Nov 2018 13:17:46 +0100 Subject: [PATCH] import appdaemon.appapi outdated (#7329) appdaemon.appapi as appapi changed to import appdaemon.plugins.hass.hassapi as hass --- source/_components/telegram_bot.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_components/telegram_bot.markdown b/source/_components/telegram_bot.markdown index ecbfa306596..f3a3a031f78 100644 --- a/source/_components/telegram_bot.markdown +++ b/source/_components/telegram_bot.markdown @@ -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):