updating configuration

This commit is contained in:
Your Name
2026-07-14 14:12:07 +00:00
parent 456f43d435
commit 6199c62362
83 changed files with 552 additions and 364 deletions
+4 -3
View File
@@ -1,10 +1,11 @@
import appdaemon.plugins.hass.hassapi as hass
import globals
#
# Notification system
#
# Args:
#
#
# Release Notes
#
# Version 1.0:
@@ -42,7 +43,7 @@ class TelegramNotifyTarget(BaseNotifyTarget):
target = self.target_sveta
hass.log('notifying over telegram person {} with message: {}'.format(target, message))
hass.notify(message, name=target)
globals.send_telegram(hass, message, target=target)
class Notification(hass.Hass):
home_targets = [AliceNotifyTarget()]
@@ -60,4 +61,4 @@ class Notification(hass.Hass):
notifyTarget = self.home_targets[0]
self.log('message: {}'.format(message))
notifyTarget.notify(self, message, person=target)
notifyTarget.notify(self, message, person=target)