Skip to content

Commit

Permalink
Do not convert config multiple times in unit tests (#158)
Browse files Browse the repository at this point in the history
* Do not convert `config` multiple times in unit tests

* Bump minimum zigpy version
  • Loading branch information
puddly authored Oct 17, 2024
1 parent 4587d33 commit f650390
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"',
Expand Down
10 changes: 4 additions & 6 deletions tests/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down

0 comments on commit f650390

Please sign in to comment.