asetek_pro: rename CorsairAsetekProDriver to HydroPro
An alias is kept with the old name, for backward compatibility.
This commit is contained in:
parent
f109d6c1a6
commit
5df10bcf4b
|
@ -79,7 +79,7 @@ def _quoted(*names):
|
|||
|
||||
# we inherit from _Base690Lc to reuse its implementation of connect
|
||||
# and disconnect, that emulates the stock SiUSBXp driver on Windows
|
||||
class CorsairAsetekProDriver(_Base690Lc):
|
||||
class HydroPro(_Base690Lc):
|
||||
"""liquidctl driver for Corsair-branded sixth generation Asetek coolers."""
|
||||
|
||||
SUPPORTED_DEVICES = [
|
||||
|
@ -260,3 +260,7 @@ class CorsairAsetekProDriver(_Base690Lc):
|
|||
@classmethod
|
||||
def probe(cls, handle, **kwargs):
|
||||
return super().probe(handle, **kwargs)
|
||||
|
||||
|
||||
# backward compatibility
|
||||
CorsairAsetekProDriver = HydroPro
|
||||
|
|
|
@ -3,13 +3,13 @@ from _testutils import MockPyusbDevice
|
|||
|
||||
from collections import deque
|
||||
|
||||
from liquidctl.driver.asetek_pro import CorsairAsetekProDriver
|
||||
from liquidctl.driver.asetek_pro import HydroPro
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def emulate():
|
||||
usb_dev = MockPyusbDevice()
|
||||
cooler = CorsairAsetekProDriver(usb_dev, 'Emulated Asetek Pro cooler', fan_count=2)
|
||||
cooler = HydroPro(usb_dev, 'Emulated Asetek Pro cooler', fan_count=2)
|
||||
return (usb_dev, cooler)
|
||||
|
||||
|
||||
|
|
|
@ -9,3 +9,7 @@ def test_version_version_dunder_still_imports(caplog):
|
|||
from liquidctl.version import __version__
|
||||
|
||||
assert type(__version__) is str
|
||||
|
||||
|
||||
def test_pre19_driver_names_still_import():
|
||||
from liquidctl.driver.asetek_pro import CorsairAsetekProDriver
|
||||
|
|
Loading…
Reference in New Issue