Skip timestamp check of the SIA events (#100660)

pull/101005/head
amitfin 2023-09-27 16:13:38 +03:00 committed by GitHub
parent 92694c53e0
commit 91fcbb41b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -28,7 +28,6 @@ from .utils import get_event_data_from_sia_event
_LOGGER = logging.getLogger(__name__)
DEFAULT_TIMEBAND = (80, 40)
IGNORED_TIMEBAND = (3600, 1800)
class SIAHub:
@ -100,7 +99,7 @@ class SIAHub:
SIAAccount(
account_id=a[CONF_ACCOUNT],
key=a.get(CONF_ENCRYPTION_KEY),
allowed_timeband=IGNORED_TIMEBAND
allowed_timeband=None
if a[CONF_IGNORE_TIMESTAMPS]
else DEFAULT_TIMEBAND,
)