def make_app(database_file): with mock.patch("zigpy.ota.OTA", mock.MagicMock(spec_set=zigpy.ota.OTA)): app = ControllerApplication(database_file) return app
def make_app(database_file): return ControllerApplication(database_file)
def app(): return ControllerApplication()