mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-13 20:36:52 +00:00
import appdaemon.appapi outdated (#7329)
appdaemon.appapi as appapi changed to import appdaemon.plugins.hass.hassapi as hass
This commit is contained in:
parent
f07b5f8628
commit
566fbc4e3f
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user