Making the device selectable for the find_device function #9
@ -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
|
||||||
|
@ -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"""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user