diff --git a/SmartHome/alarmclock.py b/SmartHome/alarmclock.py index cebc32f..c62ef59 100644 --- a/SmartHome/alarmclock.py +++ b/SmartHome/alarmclock.py @@ -13,7 +13,7 @@ def method(params): if shedule: voice = voice + ' Расписание на сегодня: ' + shedule while True: - if os.popen('echo \'pow 0.0.0.0\' | cec-client -s -d 1 |grep power').read() == 'power status: on': + if os.popen('echo \'pow 0.0.0.0\' | cec-client -s -d 1 |grep power').read() == 'power status: on\n': break return Response(text = text, voice = voice)