From 00ab0447ec6e0bb97d5386839841f5ae25083f10 Mon Sep 17 00:00:00 2001 From: Keilin Date: Wed, 1 Apr 2020 14:24:21 -0400 Subject: [PATCH] Fixed get_all_usage_data call and removed now broken notification function --- sense_energy/senseable.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/sense_energy/senseable.py b/sense_energy/senseable.py index cd2e686..88a9c50 100644 --- a/sense_energy/senseable.py +++ b/sense_energy/senseable.py @@ -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)