Making the device selectable for the find_device function #9

Merged
jan.mrna merged 3 commits from ViktorWalter/pyveles:master into master 2023-07-17 23:34:14 +02:00
2 changed files with 2 additions and 5 deletions
Showing only changes of commit 84b02a024f - Show all commits

View File

@ -1,5 +1,5 @@
from typing import Final, Dict, Any, TypeVar, Type, Iterable from typing import Final, Dict, Any, TypeVar, Type, Iterable
from .generic import Device from .generic import Device, NoResponseError
from .sensor_wired import SensorWiredIAQ, SensorWiredRHT from .sensor_wired import SensorWiredIAQ, SensorWiredRHT
# links device identifiers to its class # links device identifiers to its class

View File

@ -3,10 +3,7 @@ from dataclasses import dataclass
from typing import Dict, Any from typing import Dict, Any
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
import sys @dataclass(slots=True)
py310 = sys.version_info.minor >= 10 or sys.version_info.major > 3
@dataclass(**({"slots": True} if py310 else {}))
class ReadoutErrorCounter: class ReadoutErrorCounter:
"""Class used to track readout errors""" """Class used to track readout errors"""