From e006bdd608ac52fa35bda356ed251120e3ed26e8 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Tue, 23 Mar 2021 04:35:22 +0300 Subject: hm... --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index a586d62..80861fa 100644 --- a/main.py +++ b/main.py @@ -31,6 +31,7 @@ def sms_handler(sms: SMS, api: WebAPI): elif text == 'yo, get me some status': print('gathering status') + api.auth() info = api.device_information() signal = api.device_signal() buf = [] @@ -46,6 +47,7 @@ def sms_handler(sms: SMS, api: WebAPI): buf = ' '.join(buf) if buf != '': print('going to send this: ' + buf) + api.auth() api.send_sms(phone=trusted_phone, content=buf) elif text == 'switch it off': -- cgit v1.2.3