|
@@ -266,9 +266,9 @@ class UnicomObjeect:
|
|
|
device_usage_history_list = usage_history['data']['deviceUsageHistory']
|
|
|
if device_usage_history_list:
|
|
|
for item in device_usage_history_list:
|
|
|
- if item['year'] == usage_year and item['month'] == usage_month:
|
|
|
- flow_total_usage += item['flowTotalUsage']
|
|
|
- break
|
|
|
+ if item['year'] != usage_year and item['month'] != usage_month:
|
|
|
+ continue
|
|
|
+ flow_total_usage += item['flowTotalUsage']
|
|
|
return flow_total_usage
|
|
|
|
|
|
@staticmethod
|