Add another 3 days leeway to give time for payment processing times (#17542)

This commit is contained in:
Paulus Schoutsen authored and Pascal Vizeli committed 2018-10-17 10:45:01 +02:00
1 parent 15f4ed74ac
commit 326787ef1a
2 files changed
+18 -4

No files matched your search

+2 -2
View File
@@ -5,7 +5,7 @@ For more details about this component, please refer to the documentation at
https://home-assistant.io/components/cloud/
"""
import asyncio
from datetime import datetime
from datetime import datetime, timedelta
import json
import logging
import os
@@ -162,7 +162,7 @@ class Cloud:
@property
def subscription_expired(self):
"""Return a boolean if the subscription has expired."""
return dt_util.utcnow() > self.expiration_date
return dt_util.utcnow() > self.expiration_date + timedelta(days=3)
@property
def expiration_date(self):