Skip to content

Commit

Permalink
Adding logging when we don't turn on the smart plug
Browse files Browse the repository at this point in the history
daithihearn committed Mar 26, 2023
1 parent f8d7439 commit 7eb1133
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions TurnOnSmartPlug.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 7eb1133

Please sign in to comment.