Skip to content

Commit

Permalink
move constant
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed May 20, 2023
1 parent 0a1b816 commit 8cd954f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/lookin/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"EF": Platform.CLIMATE,
}

NEVER_TIME = -120.0 # Time that will never match time.monotonic()
ACTIVE_UPDATES_INTERVAL = 4 # Consider active for 4x the update interval
METEO_UPDATE_INTERVAL = timedelta(minutes=5)
REMOTE_UPDATE_INTERVAL = timedelta(seconds=60)
Expand Down
4 changes: 1 addition & 3 deletions homeassistant/components/lookin/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator

from .const import POLLING_FALLBACK_SECONDS
from .const import NEVER_TIME, POLLING_FALLBACK_SECONDS

_LOGGER = logging.getLogger(__name__)
_DataT = TypeVar("_DataT")

NEVER_TIME = -120.0 # Time that will never match time.monotonic()


class LookinPushCoordinator:
"""Keep track of when the last push update was."""
Expand Down

0 comments on commit 8cd954f

Please sign in to comment.