renaming file containing DeviceConnection, updating component

This commit is contained in:
Mose Müller 2024-01-23 15:44:05 +01:00
parent 1318bbc8a8
commit 30138bcb45
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ print(my_service.voltage.value) # Output: 5
""" """
from pydase.components.coloured_enum import ColouredEnum from pydase.components.coloured_enum import ColouredEnum
from pydase.components.connection import DeviceConnection from pydase.components.device_connection import DeviceConnection
from pydase.components.image import Image from pydase.components.image import Image
from pydase.components.number_slider import NumberSlider from pydase.components.number_slider import NumberSlider

View File

@ -26,8 +26,8 @@ class DeviceConnection(pydase.DataService, ABC):
def __init__(self) -> None: def __init__(self) -> None:
super().__init__() super().__init__()
self._autostart_tasks = {"_handle_connection": ()} # type: ignore self._autostart_tasks["_handle_connection"] = () # type: ignore
self._handle_connection_wait_time = 2.0 self._handle_connection_wait_time = 10.0
@abstractmethod @abstractmethod
def connect(self) -> None: def connect(self) -> None: