Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pyomnilogic_local/omnilogic.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from typing import TYPE_CHECKING, Any

from pyomnilogic_local.api import OmniLogicAPI
from pyomnilogic_local.api.constants import DEFAULT_RESPONSE_TIMEOUT
from pyomnilogic_local.backyard import Backyard
from pyomnilogic_local.collections import EquipmentDict
from pyomnilogic_local.groups import Group
Expand Down Expand Up @@ -50,11 +51,11 @@ class OmniLogic:
_min_mspversion: str = "R05"
_warned_mspversion: bool = False

def __init__(self, host: str, port: int = 10444) -> None:
def __init__(self, host: str, port: int = 10444, timeout: float = DEFAULT_RESPONSE_TIMEOUT) -> None:
self.host = host
self.port = port

self._api = OmniLogicAPI(host, port)
self._api = OmniLogicAPI(host, port, timeout)
self._refresh_lock = asyncio.Lock()

def __repr__(self) -> str:
Expand Down
Loading