Skip to content

Commit f650390

Browse files
authored
Do not convert config multiple times in unit tests (#158)
* Do not convert `config` multiple times in unit tests * Bump minimum zigpy version
1 parent 4587d33 commit f650390

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ license = {text = "GPL-3.0"}
1515
requires-python = ">=3.8"
1616
dependencies = [
1717
"voluptuous",
18-
"zigpy>=0.60.2",
18+
"zigpy>=0.66.0",
1919
"pyusb>=1.1.0",
2020
"gpiozero",
2121
'async-timeout; python_version<"3.11"',

tests/test_application.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@
1010
import zigpy_zigate.types as t
1111
import zigpy_zigate.zigbee.application
1212

13-
APP_CONFIG = zigpy_zigate.zigbee.application.ControllerApplication.SCHEMA(
14-
{
15-
config.CONF_DEVICE: {config.CONF_DEVICE_PATH: "/dev/null"},
16-
config.CONF_DATABASE: None,
17-
}
18-
)
13+
APP_CONFIG = {
14+
config.CONF_DEVICE: {config.CONF_DEVICE_PATH: "/dev/null"},
15+
config.CONF_DATABASE: None,
16+
}
1917
FAKE_FIRMWARE_VERSION = "3.1z"
2018

2119

0 commit comments

Comments
 (0)