mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 10:47:10 +00:00
Avoid total_seconds conversion in bond keep alive (#107618)
This commit is contained in:
parent
d1c1eb8428
commit
ab6b9fe891
@ -3,7 +3,7 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from abc import abstractmethod
|
from abc import abstractmethod
|
||||||
from asyncio import Lock, TimeoutError as AsyncIOTimeoutError
|
from asyncio import Lock, TimeoutError as AsyncIOTimeoutError
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from aiohttp import ClientError
|
from aiohttp import ClientError
|
||||||
@ -27,8 +27,8 @@ from .utils import BondDevice, BondHub
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
_FALLBACK_SCAN_INTERVAL = timedelta(seconds=10)
|
_FALLBACK_SCAN_INTERVAL = 10
|
||||||
_BPUP_ALIVE_SCAN_INTERVAL = timedelta(seconds=60)
|
_BPUP_ALIVE_SCAN_INTERVAL = 60
|
||||||
|
|
||||||
|
|
||||||
class BondEntity(Entity):
|
class BondEntity(Entity):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user