Skip to content

Commit

Permalink
Fixed get_all_usage_data call and removed now broken notification fun…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
kbickar committed Apr 1, 2020
1 parent 6f37765 commit 00ab044
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions sense_energy/senseable.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,10 @@ def get_device_info(self, device_id):
return self.api_call('app/monitors/%s/devices/%s' %
(self.sense_monitor_id, device_id))

def get_notification_preferences(self):
# Get notification preferences
payload = {'monitor_id': '%s' % self.sense_monitor_id}
return self.api_call('users/%s/notifications' %
self.sense_user_id, payload)

def get_all_usage_data(self):
payload = {'n_items': 30}
# lots of info in here to be parsed out
return self.s.get('users/%s/timeline' %
self.sense_user_id, payload)
return self.api_call('users/%s/timeline' %
(self.sense_user_id), payload)


0 comments on commit 00ab044

Please sign in to comment.