From: 
Subject: Debian changes

The Debian packaging of python-dynalite-devices is maintained in git, using a workflow
similar to the one described in dgit-maint-merge(7).
The Debian delta is represented by this one combined patch; there isn't a
patch queue that can be represented as a quilt series.

A detailed breakdown of the changes is available from their canonical
representation -- git commits in the packaging repository.
For example, to see the changes made by the Debian maintainer in the first
upload of upstream version 1.2.3, you could use:

    % git clone https://git.dgit.debian.org/python-dynalite-devices
    % cd python-dynalite-devices
    % git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'

(If you have dgit, use `dgit clone python-dynalite-devices`, rather than plain `git clone`.)

We don't use debian/source/options single-debian-patch because it has bugs.
Therefore, NMUs etc. may nevertheless have made additional patches.

---

diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 4f10218..a7a233f 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -47,7 +47,7 @@
 	// "forwardPorts": [],
 
 	// Use 'postCreateCommand' to run commands after the container is created.
-	// "postCreateCommand": "pip3 install --user -r requirements.txt",
+	"postCreateCommand": "pre-commit install",
 
 	// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
 	"remoteUser": "vscode"
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 536191f..0bb0dbd 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
 repos:
   - repo: https://github.com/psf/black
-    rev: stable
+    rev: 23.3.0
     hooks:
       - id: black
         args:
@@ -8,7 +8,7 @@ repos:
           - --quiet
         files: ^(dynalite_devices_lib|tests)/.+\.py$
   - repo: https://github.com/codespell-project/codespell
-    rev: v1.16.0
+    rev: v2.2.2
     hooks:
       - id: codespell
         args:
@@ -16,16 +16,8 @@ repos:
           - --skip="./.*,*.json"
           - --quiet-level=2
         exclude_types: [json]
-  - repo: https://gitlab.com/pycqa/flake8
-    rev: 3.7.9
-    hooks:
-      - id: flake8
-        additional_dependencies:
-          - flake8-docstrings==1.5.0
-          - pydocstyle==5.0.2
-        files: ^(dynalite_devices_lib|tests)/.+\.py$
   - repo: https://github.com/PyCQA/bandit
-    rev: 1.6.2
+    rev: 1.7.4
     hooks:
       - id: bandit
         args:
@@ -33,7 +25,7 @@ repos:
           - --format=custom
           - --configfile=tests/bandit.yaml
         files: ^(dynalite_devices_lib|tests)/.+\.py$
-  - repo: https://github.com/pre-commit/mirrors-isort
-    rev: v4.3.21
+  - repo: https://github.com/PyCQA/isort
+    rev: 5.12.0
     hooks:
       - id: isort
diff --git a/dynalite_devices_lib/__version__.py b/dynalite_devices_lib/__version__.py
index 9691bfe..b5a0211 100644
--- a/dynalite_devices_lib/__version__.py
+++ b/dynalite_devices_lib/__version__.py
@@ -1,2 +1,2 @@
 """Version of package."""
-__version__ = "0.1.47"
+__version__ = "0.1.48"
diff --git a/requirements.txt b/requirements.txt
index a133e5a..129f17e 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,7 +1,6 @@
 pytest
 pytest-cov
 pytest-asyncio
-asynctest
 pre-commit
 mypy
 setuptools
diff --git a/tests/conftest.py b/tests/conftest.py
index fd00113..9b4a265 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,8 +1,9 @@
 """Fixtures for the Dynalite tests."""
 import asyncio
+from unittest.mock import Mock, patch
 
-from asynctest import Mock, patch
 import pytest
+import pytest_asyncio
 
 import dynalite_devices_lib.const as dyn_const
 from dynalite_devices_lib.dynalite_devices import DynaliteDevices
@@ -167,7 +168,7 @@ class MockGateway:
         self.update_dev_func.assert_not_called()
 
 
-@pytest.fixture()
+@pytest_asyncio.fixture()
 async def mock_gateway(request):
     """Mock for a TCP gateway. Removes throttling by Dynet."""
     gateway = MockGateway(request, True)
@@ -175,7 +176,7 @@ async def mock_gateway(request):
     return gateway
 
 
-@pytest.fixture()
+@pytest_asyncio.fixture()
 async def mock_gateway_with_delay(request):
     """Mock for a TCP gateway. Keeps throttling by Dynet."""
     gateway = MockGateway(request, False)
diff --git a/tests/test_dynalite.py b/tests/test_dynalite.py
index 12634e7..95815dc 100644
--- a/tests/test_dynalite.py
+++ b/tests/test_dynalite.py
@@ -1,8 +1,8 @@
 """Tests for DynaliteDevices."""
 
 import asyncio
+from unittest.mock import patch
 
-from asynctest import patch
 import pytest
 
 import dynalite_devices_lib.const as dyn_const
