Skip to content

Commit

Permalink
Do not double convert config (#176)
Browse files Browse the repository at this point in the history
* Do not double convert config

* Disable OTA in unit tests
  • Loading branch information
puddly authored Aug 5, 2024
1 parent eac101f commit 1b5da1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
config.CONF_DEVICE_BAUDRATE: 115200,
},
config.CONF_DATABASE: None,
config.CONF_OTA: {
config.CONF_OTA_ENABLED: False,
},
}


Expand Down
2 changes: 1 addition & 1 deletion zigpy_xbee/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ControllerApplication(zigpy.application.ControllerApplication):

def __init__(self, config: dict[str, Any]):
"""Initialize instance."""
super().__init__(config=zigpy.config.ZIGPY_SCHEMA(config))
super().__init__(config=config)
self._api: zigpy_xbee.api.XBee | None = None
self.topology.add_listener(self)

Expand Down

0 comments on commit 1b5da1d

Please sign in to comment.