fix usps? (#9557)
This commit is contained in:
1 parent
e2ce1d05ae
commit
84524e0712
3 files changed
+7
-4
No files matched your search
@@ -57,7 +57,7 @@ class USPSPackageSensor(Entity):
|
||||
for package in self._usps.packages:
|
||||
status = slugify(package['primary_status'])
|
||||
if status == STATUS_DELIVERED and \
|
||||
package['date'] < now().date():
|
||||
package['delivery_date'] < now().date():
|
||||
continue
|
||||
status_counts[status] += 1
|
||||
self._attributes = {
|
||||
|
||||
Reference in new issue
Block a user