Skip to content

Commit

Permalink
Updated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsears committed Jun 7, 2016
1 parent a31e565 commit 06a21a6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pool_fill_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,6 @@ def send_notification(status):
elif status == "DONE_FILLING" and alertsent == "Yes":
push = pb.push_note("Swimming Pool Level OK",
"Swimming pool water level back to normal. Automatic Refilling Complete.")
# noinspection PyStatementEffect,PyStatementEffect,PyStatementEffect
alertsent == "No"
logger.info('PushBullet Notification Sent - Pool is done refilling Automatically')
elif status == "MANUAL_FILL":
Expand All @@ -365,19 +364,16 @@ def send_notification(status):
push = pb.push_note("Pool Fill Valve - DISABLED",
"Your swimming pool fill valve has been manually DISABLED, you need to reenable it to fill your pool!")
logger.error('PushBullet Notification Sent - Pool fill valve manually disabled')
# noinspection PyStatementEffect
pool_fill_valve_alert_sent == "Yes"
elif status == "POOL_FILL_VALVE_REENABLED" and pool_fill_valve_alert_sent == "Yes":
push = pb.push_note("Pool Fill Valve - ENABLED",
"Your swimming pool fill valve has been REENABLED!")
logger.error('PushBullet Notification Sent - Pool fill valve manually reenabled')
# noinspection PyStatementEffect
pool_fill_valve_alert_sent == "No"
elif status == "STARTUP_OK":
push = pb.push_note("Pool Fill Control - Startup",
"Your Pool Filling Control system has started successfully!")
logger.debug('PushBullet Notification Sent - Pool fill control started successfully')
# noinspection PyStatementEffect
pool_fill_valve_alert_sent == "No"


Expand Down Expand Up @@ -546,7 +542,6 @@ def max_run_time():
max_run_time_exceeded = "Yes"
if alerting.PoolAlerting == "True":
send_notification('POOL_OVERFILL')
# noinspection PyStatementEffect
overfill_alert_sent == "Yes"


Expand Down

0 comments on commit 06a21a6

Please sign in to comment.