diff --git a/TurnOnSmartPlug.py b/TurnOnSmartPlug.py index ce4856c..6b1c07a 100644 --- a/TurnOnSmartPlug.py +++ b/TurnOnSmartPlug.py @@ -11,6 +11,9 @@ async def main(): if curr_price == min_price: await turn_on() + else: + print('Not turning the smart plug on. Min price is ' + + min_price.value+', current price is '+curr_price.value+'.') if __name__ == '__main__': loop = asyncio.get_event_loop()