water action fixes

This commit is contained in:
Your Name
2019-11-06 09:20:11 +03:00
parent 94778c039e
commit 7a32cb74da
24 changed files with 178 additions and 44 deletions
+7 -2
View File
@@ -1,6 +1,10 @@
# -*- coding: utf-8 -*-
import appdaemon.plugins.hass.hassapi as hass
from notification import send_notification
import datetime
import sys, locale
import logging, codecs
#import unicode
# from automation import Automation # type: ignore
"""
@@ -10,7 +14,8 @@ Arguments:
"""
class Test(hass.Hass):
def initialize(self) -> None:
self.log('test')
self.log(u"Привет")
self.log(str(u'ô'))
# id = send_notification(
# self, targets="telegram_monster", message="Repeated message", title="title", when=datetime.datetime.now(), interval=10, iterations=2
# )
@@ -23,4 +28,4 @@ class Test(hass.Hass):
self.log('terminate')
# for listen_event_handle in self.listen_event_handle_list:
# self.cancel_listen_event(listen_event_handle)