From f6503908c895d42ed878668a446fe48a8d6e45d4 Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Thu, 17 Oct 2024 18:55:20 -0400 Subject: [PATCH] Do not convert `config` multiple times in unit tests (#158) * Do not convert `config` multiple times in unit tests * Bump minimum zigpy version --- pyproject.toml | 2 +- tests/test_application.py | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a9a15b8..452c2e4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ license = {text = "GPL-3.0"} requires-python = ">=3.8" dependencies = [ "voluptuous", - "zigpy>=0.60.2", + "zigpy>=0.66.0", "pyusb>=1.1.0", "gpiozero", 'async-timeout; python_version<"3.11"', diff --git a/tests/test_application.py b/tests/test_application.py index 2fd66c8..fbff54e 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -10,12 +10,10 @@ import zigpy_zigate.types as t import zigpy_zigate.zigbee.application -APP_CONFIG = zigpy_zigate.zigbee.application.ControllerApplication.SCHEMA( - { - config.CONF_DEVICE: {config.CONF_DEVICE_PATH: "/dev/null"}, - config.CONF_DATABASE: None, - } -) +APP_CONFIG = { + config.CONF_DEVICE: {config.CONF_DEVICE_PATH: "/dev/null"}, + config.CONF_DATABASE: None, +} FAKE_FIRMWARE_VERSION = "3.1z"