Skip to content

Commit

Permalink
Fixed title forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
cadavre committed Jul 1, 2019
1 parent d97bf01 commit 53be195
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def __init__(self, pairs, time):
def send_message(self, message="", **kwargs):
"""Send a message."""

print(kwargs)

mode = MODE_ALL
time = self._time
data = {}
Expand All @@ -85,8 +87,15 @@ def send_message(self, message="", **kwargs):
if cur_state == STATE_ON or cur_state == STATE_HOME:
anyone_home = True

service_data = kwargs
# Append message
service_data['message'] = message
# Alter data
service_data['data'] = data

print(service_data)

looking_since = dt_util.utcnow() - timedelta(minutes=time)
service_data = {'message': message, 'data': data}

# Check and notify each entity
for pair in self._pairs:
Expand Down

0 comments on commit 53be195

Please sign in to comment.